- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/AtomAction/TranslateAction.def
r1fd675 re4afb4 7 7 8 8 // all includes and forward declarations necessary for non-integral types below 9 #include "Actions/Values.hpp" 9 10 #include "LinearAlgebra/Vector.hpp" 10 11 11 12 // i.e. there is an integer with variable name Z that can be found in 12 13 // ValueStorage by the token "Z" -> first column: int, Z, "Z" 13 // "undefine" if no parameters are required 14 #define paramtypes (Vector) (bool) 15 #define paramtokens (AtomTranslateAction::NAME) ("periodic") 16 #define paramreferences (x) (periodic) 14 // "undefine" if no parameters are required, use (NODEFAULT) for each (undefined) default value 15 #define paramtypes (Vector)(bool) 16 #define paramtokens ("translate-atoms")("periodic") 17 #define paramdescriptions ("translation vector")("system is constraint to periodic boundary conditions") 18 #define paramreferences (x)(periodic) 19 #define paramdefaults (NODEFAULT)("0") 17 20 18 21 #define statetypes (std::vector<atom*>) … … 21 24 // some defines for all the names, you may use ACTION, STATE and PARAMS 22 25 #define CATEGORY Atom 26 #define MENUNAME "atom" 27 #define MENUPOSITION 4 23 28 #define ACTIONNAME Translate 24 29 #define TOKEN "translate-atoms" 25 30 31 32 // finally the information stored in the ActionTrait specialization 33 #define DESCRIPTION "translate all selected atoms by given vector" 34 #define SHORTFORM "t"
Note:
See TracChangeset
for help on using the changeset viewer.