[1fd675] | 1 | /*
|
---|
| 2 | * AllAtomsInsideCuboidAction.def
|
---|
| 3 | *
|
---|
| 4 | * Created on: Aug 26, 2010
|
---|
| 5 | * Author: heber
|
---|
| 6 | */
|
---|
| 7 |
|
---|
| 8 | // all includes and forward declarations necessary for non-integral types below
|
---|
[23d7ff] | 9 | #include "LinearAlgebra/Vector.hpp"
|
---|
| 10 | #include "Shapes/Shape.hpp"
|
---|
| 11 | class atom;
|
---|
[1fd675] | 12 |
|
---|
[23958d] | 13 | #include "Parameters/Validators/Specific/BoxVectorValidator.hpp"
|
---|
| 14 | #include "Parameters/Validators/Specific/RotationAngleValidator.hpp"
|
---|
| 15 | #include "Parameters/Validators/Specific/VectorPositiveComponentsValidator.hpp"
|
---|
[649aaa] | 16 |
|
---|
[1fd675] | 17 | // i.e. there is an integer with variable name Z that can be found in
|
---|
| 18 | // ValueStorage by the token "Z" -> first column: int, Z, "Z"
|
---|
[6ba9ba] | 19 | // "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
|
---|
[d57341] | 20 | #define paramtypes (Vector)(Vector)(double)(double)(double)
|
---|
| 21 | #define paramtokens ("select-atoms-inside-cuboid")("position")("angle-x")("angle-y")("angle-z")
|
---|
[e4afb4] | 22 | #define paramdescriptions ("dimensions of cuboid")("position in R^3 space")("angle of a rotation around x axis")("angle of a rotation around y axis")("angle of a rotation around z axis")
|
---|
[6ba9ba] | 23 | #define paramdefaults (NOPARAM_DEFAULT)(NOPARAM_DEFAULT)(PARAM_DEFAULT(0.))(PARAM_DEFAULT(0.))(PARAM_DEFAULT(0.))
|
---|
[d57341] | 24 | #define paramreferences (extension)(position)(Xangle)(Yangle)(Zangle)
|
---|
[23958d] | 25 | #define paramvalids \
|
---|
| 26 | (VectorPositiveComponentsValidator()) \
|
---|
| 27 | (BoxVectorValidator()) \
|
---|
| 28 | (RotationAngleValidator()) \
|
---|
| 29 | (RotationAngleValidator()) \
|
---|
| 30 | (RotationAngleValidator())
|
---|
[1fd675] | 31 |
|
---|
[92d756] | 32 | #define statetypes (std::vector<atom*>)(Shape)
|
---|
| 33 | #define statereferences (selectedAtoms)(s)
|
---|
[1fd675] | 34 |
|
---|
| 35 | // some defines for all the names, you may use ACTION, STATE and PARAMS
|
---|
| 36 | #define CATEGORY Selection
|
---|
[052bfd8] | 37 | #define MENUNAME "selection"
|
---|
| 38 | #define MENUPOSITION 7
|
---|
[1fd675] | 39 | #define ACTIONNAME AllAtomsInsideCuboid
|
---|
| 40 | #define TOKEN "select-atoms-inside-cuboid"
|
---|
| 41 |
|
---|
[24fbf3] | 42 |
|
---|
| 43 | // finally the information stored in the ActionTrait specialization
|
---|
| 44 | #define DESCRIPTION "select all atoms inside a cuboid"
|
---|
| 45 | #undef SHORTFORM
|
---|