Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/SelectionAction/AllAtomsInsideCuboidAction.def

    r1fd675 re4afb4  
    77
    88// all includes and forward declarations necessary for non-integral types below
     9#include "Actions/Values.hpp"
     10
    911class Vector;
    1012
    1113// i.e. there is an integer with variable name Z that can be found in
    1214// ValueStorage by the token "Z" -> first column: int, Z, "Z"
    13 // "undefine" if no parameters are required
    14 #define paramtypes (Vector) (Vector) (double) (double) (double)
    15 #define paramtokens (SelectionAllAtomsInsideCuboidAction::NAME) ("position") ("angle-x") ("angle-y") ("angle-z")
    16 #define paramreferences (extension) (position) (Xangle) (Yangle) (Zangle)
     15// "undefine" if no parameters are required, use (NODEFAULT) for each (undefined) default value
     16#define paramtypes (Vector)(Vector)(double)(double)(double)
     17#define paramtokens ("select-atoms-inside-cuboid")("position")("angle-x")("angle-y")("angle-z")
     18#define paramdescriptions ("dimensions of cuboid")("position in R^3 space")("angle of a rotation around x axis")("angle of a rotation around y axis")("angle of a rotation around z axis")
     19#undef paramdefaults
     20#define paramreferences (extension)(position)(Xangle)(Yangle)(Zangle)
    1721
    1822#define statetypes (std::vector<atom*>)
     
    2125// some defines for all the names, you may use ACTION, STATE and PARAMS
    2226#define CATEGORY Selection
     27#define MENUNAME "selection"
     28#define MENUPOSITION 7
    2329#define ACTIONNAME AllAtomsInsideCuboid
    2430#define TOKEN "select-atoms-inside-cuboid"
    2531
     32
     33// finally the information stored in the ActionTrait specialization
     34#define DESCRIPTION "select all atoms inside a cuboid"
     35#undef SHORTFORM
Note: See TracChangeset for help on using the changeset viewer.