/* * CreateShapeAction.def * * Created on: Sep 13, 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)(std::string)(Vector)(Vector)(double)(double)(double) #define paramtokens ("shape-name")("shape-type")("translation")("stretch")("angle-x")("angle-y")("angle-z") #define paramdescriptions ("name shape to create")("type of shape to create")("translation distance")("scaling factors")("rotation x")("rotation y")("rotation z") #define paramdefaults (PARAM_DEFAULT(std::string("")))(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_name)(shape_type)(translation)(stretch)(angle_x)(angle_y)(angle_z) #define paramvalids \ (DummyValidator()) \ (ShapeTypeValidator()) \ (DummyValidator()) \ (VectorPositiveComponentsValidator()) \ (DummyValidator()) \ (DummyValidator()) \ (DummyValidator()) #define statetypes (std::string) #define statereferences (old_name) // some defines for all the names, you may use ACTION, STATE and PARAMS #define CATEGORY Shape #define MENUNAME "shape" #define MENUPOSITION 2 #define ACTIONNAME CreateShape #define TOKEN "create-shape" // finally the information stored in the ActionTrait specialization #define DESCRIPTION "creates a new shape and puts it into the ShapeRegistry" #undef SHORTFORM