/* * StretchShapeAction.def * * Created on: Nov 23, 2012 * Author: ankele */ // all includes and forward declarations necessary for non-integral types below #include #include "Parameters/Validators/DummyValidator.hpp" class Shape; // 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 (Vector)(Vector) #define paramtokens ("stretch-shapes")("center") #define paramdescriptions ("scaling factors")("center of stretching") #define paramdefaults (PARAM_DEFAULT(Vector(1.,1.,1.)))(PARAM_DEFAULT(Vector(0.,0.,0.))) #define paramreferences (stretch)(center) #define paramvalids \ (DummyValidator()) \ (DummyValidator()) #define statetypes (std::vector) #define statereferences (old_shapes) // some defines for all the names, you may use ACTION, STATE and PARAMS #define CATEGORY Shape #define MENUNAME "shape" #define MENUPOSITION 6 #define ACTIONNAME StretchShape #define TOKEN "stretch-shapes" // finally the information stored in the ActionTrait specialization #define DESCRIPTION "stretches selected shapes in ShapeRegistry" #undef SHORTFORM