/* * GeometryPlaneToVectorAction.cpp * * Created on: Mar 28, 2017 * Author: heber */ // all includes and forward declarations necessary for non-integral types below #include "Parameters/Validators/Specific/GeometryNameValidator.hpp" // i.e. there is an integer with variable name Z that can be found in // ValueStorage by the token "Z" -> first column: int, Z, "Z" // "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value //#define paramtypes (const element *)(BoxVector) TODO: use a validator #define paramtypes (std::string)(bool) #define paramtokens ("plane-to-vector")("reverse") #define paramdescriptions ("name for geometry object for reference as vector")("whether to invert the resulting vector") #define paramreferences (name)(reverse) #define paramdefaults (NOPARAM_DEFAULT())(PARAM_DEFAULT(0)) #define paramvalids \ (GeometryNameValidator()) \ (DummyValidator()) #define statetypes (Vector) #define statereferences (PlaneNormal) // some defines for all the names, you may use ACTION, STATE and PARAMS #define CATEGORY Geometry #define MENUNAME "geometry" #define MENUPOSITION 3 #define ACTIONNAME PlaneToVector #define TOKEN "plane-to-vector" // finally the information stored in the ActionTrait specialization #define DESCRIPTION "stores the plane defined by three selected atom as a named geometry object" #undef SHORTFORM