/* * SetShapeAction.def * * Created on: Sep 6, 2012 * Author: ankele */ // all includes and forward declarations necessary for non-integral types below #include #include "Parameters/Validators/DummyValidator.hpp" #include "Parameters/Validators/Specific/ShapeTypeValidator.hpp" #include "Parameters/Validators/Specific/VectorPositiveComponentsValidator.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 (std::string)(Vector)(Vector)(double)(double)(double) #define paramtokens ("shape-type")("translation")("stretch")("angle-x")("angle-y")("angle-z") #define paramdescriptions ("type of shape to create")("translation distance")("scaling factors")("rotation x")("rotation y")("rotation z") #define paramdefaults (NOPARAM_DEFAULT)(PARAM_DEFAULT(Vector(0.,0.,0.)))(PARAM_DEFAULT(Vector(1.,1.,1.)))(PARAM_DEFAULT(0.))(PARAM_DEFAULT(0.))(PARAM_DEFAULT(0.)) #define paramreferences (shape_type)(translation)(stretch)(angle_x)(angle_y)(angle_z) #define paramvalids \ (ShapeTypeValidator()) \ (DummyValidator()) \ (VectorPositiveComponentsValidator()) \ (DummyValidator()) \ (DummyValidator()) \ (DummyValidator()) #define statetypes (std::string)(Vector)(Vector)(double)(double)(double) #define statereferences (old_type)(old_translation)(old_stretch)(old_angle_x)(old_angle_y)(old_angle_z) // some defines for all the names, you may use ACTION, STATE and PARAMS #define CATEGORY Shape #define MENUNAME "shape" #define MENUPOSITION 1 #define ACTIONNAME SetShape #define TOKEN "set-shape" // finally the information stored in the ActionTrait specialization #define DESCRIPTION "sets the properties for the next shape to be created by the shape factory" #undef SHORTFORM