/* * TranslateShapeAction.def * * Created on: Nov 19, 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) #define paramtokens ("translate-shapes") #define paramdescriptions ("translation distance") #define paramdefaults (PARAM_DEFAULT(Vector(0.,0.,0.))) #define paramreferences (translation) #define paramvalids \ (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 4 #define ACTIONNAME TranslateShape #define TOKEN "translate-shapes" // finally the information stored in the ActionTrait specialization #define DESCRIPTION "moves selected shapes in ShapeRegistry" #undef SHORTFORM