| 1 | /* | 
|---|
| 2 | * GeometryPlaneToVectorAction.cpp | 
|---|
| 3 | * | 
|---|
| 4 | *  Created on: Mar 28, 2017 | 
|---|
| 5 | *      Author: heber | 
|---|
| 6 | */ | 
|---|
| 7 |  | 
|---|
| 8 | // all includes and forward declarations necessary for non-integral types below | 
|---|
| 9 | #include "Parameters/Validators/Specific/GeometryNameValidator.hpp" | 
|---|
| 10 |  | 
|---|
| 11 | // i.e. there is an integer with variable name Z that can be found in | 
|---|
| 12 | // ValueStorage by the token "Z" -> first column: int, Z, "Z" | 
|---|
| 13 | // "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value | 
|---|
| 14 | //#define paramtypes (const element *)(BoxVector) TODO: use a validator | 
|---|
| 15 | #define paramtypes (std::string)(bool) | 
|---|
| 16 | #define paramtokens ("plane-to-vector")("reverse") | 
|---|
| 17 | #define paramdescriptions ("name for geometry object for reference as vector")("whether to invert the resulting vector") | 
|---|
| 18 | #define paramreferences (name)(reverse) | 
|---|
| 19 | #define paramdefaults (NOPARAM_DEFAULT())(PARAM_DEFAULT(0)) | 
|---|
| 20 | #define paramvalids \ | 
|---|
| 21 | (GeometryNameValidator()) \ | 
|---|
| 22 | (DummyValidator<bool>()) | 
|---|
| 23 |  | 
|---|
| 24 | #define statetypes (Vector) | 
|---|
| 25 | #define statereferences (PlaneNormal) | 
|---|
| 26 |  | 
|---|
| 27 | // some defines for all the names, you may use ACTION, STATE and PARAMS | 
|---|
| 28 | #define CATEGORY Geometry | 
|---|
| 29 | #define MENUNAME "geometry" | 
|---|
| 30 | #define MENUPOSITION 3 | 
|---|
| 31 | #define ACTIONNAME PlaneToVector | 
|---|
| 32 | #define TOKEN "plane-to-vector" | 
|---|
| 33 |  | 
|---|
| 34 | // finally the information stored in the ActionTrait specialization | 
|---|
| 35 | #define DESCRIPTION "stores the plane defined by three selected atom as a named geometry object" | 
|---|
| 36 | #undef SHORTFORM | 
|---|