| 1 | /*
 | 
|---|
| 2 |  * GlobalListOfActions.hpp
 | 
|---|
| 3 |  *
 | 
|---|
| 4 |  *  Created on: Sep 21, 2011
 | 
|---|
| 5 |  *      Author: heber
 | 
|---|
| 6 |  */
 | 
|---|
| 7 | 
 | 
|---|
| 8 | #ifndef GLOBALLISTOFACTIONS_HPP_
 | 
|---|
| 9 | #define GLOBALLISTOFACTIONS_HPP_
 | 
|---|
| 10 | 
 | 
|---|
| 11 | // include config.h
 | 
|---|
| 12 | #ifdef HAVE_CONFIG_H
 | 
|---|
| 13 | #include <config.h>
 | 
|---|
| 14 | #endif
 | 
|---|
| 15 | 
 | 
|---|
| 16 | #include <boost/preprocessor/seq/push_back.hpp>
 | 
|---|
| 17 | #include <boost/preprocessor/seq/remove.hpp>
 | 
|---|
| 18 | 
 | 
|---|
| 19 | // this is global list of actions valid for all cases
 | 
|---|
| 20 | // PLEASE adhere to the alphabetical ordering of the list of Actions
 | 
|---|
| 21 | // NOTE that Redo must remain at the front due to technical reasons
 | 
|---|
| 22 | #define GLOBALLISTOFACTIONS_initial \
 | 
|---|
| 23 |   (Redo) \
 | 
|---|
| 24 |   (AnalysisAverageMoleculeForce) \
 | 
|---|
| 25 |   (AnalysisDipoleAngularCorrelation) \
 | 
|---|
| 26 |   (AnalysisDipoleCorrelation) \
 | 
|---|
| 27 |   (AnalysisMolecularVolume) \
 | 
|---|
| 28 |   (AnalysisPairCorrelation) \
 | 
|---|
| 29 |   (AnalysisPointCorrelation) \
 | 
|---|
| 30 |   (AnalysisPrincipalAxisSystem) \
 | 
|---|
| 31 |   (AnalysisSurfaceCorrelation) \
 | 
|---|
| 32 |   (AtomAdd) \
 | 
|---|
| 33 |   (AtomBondify) \
 | 
|---|
| 34 |   (AtomChangeElement) \
 | 
|---|
| 35 |   (AtomMirror) \
 | 
|---|
| 36 |   (AtomRandomPerturbation) \
 | 
|---|
| 37 |   (AtomRemove) \
 | 
|---|
| 38 |   (AtomRotateAroundOriginByAngle) \
 | 
|---|
| 39 |   (AtomSaturate) \
 | 
|---|
| 40 |   (AtomSaveSelectedAtoms) \
 | 
|---|
| 41 |   (AtomTranslate) \
 | 
|---|
| 42 |   (AtomTranslateToOrigin) \
 | 
|---|
| 43 |   (BondAdd) \
 | 
|---|
| 44 |   (BondRemove) \
 | 
|---|
| 45 |   (BondSetDegree) \
 | 
|---|
| 46 |   (CommandDryRun) \
 | 
|---|
| 47 |   (CommandElementDb) \
 | 
|---|
| 48 |   (CommandBondLengthTable) \
 | 
|---|
| 49 |   (CommandFastParsing) \
 | 
|---|
| 50 |   (CommandHelp) \
 | 
|---|
| 51 |   (CommandHelpRedistribute) \
 | 
|---|
| 52 |   (CommandNoDryRun) \
 | 
|---|
| 53 |   (CommandSetRandomNumbersEngine) \
 | 
|---|
| 54 |   (CommandSetRandomNumbersDistribution) \
 | 
|---|
| 55 |   (CommandStoreSession) \
 | 
|---|
| 56 |   (CommandUndoMark) \
 | 
|---|
| 57 |   (CommandVerbose) \
 | 
|---|
| 58 |   (CommandVersion) \
 | 
|---|
| 59 |   (CommandWarranty) \
 | 
|---|
| 60 |   (FillRegularGrid) \
 | 
|---|
| 61 |   (FillSurface) \
 | 
|---|
| 62 |   (FillSuspendInMolecule) \
 | 
|---|
| 63 |   (FillVolume) \
 | 
|---|
| 64 |   (FragmentationAnalyseFragmentationResults) \
 | 
|---|
| 65 |   (FragmentationClearFragmentationResults) \
 | 
|---|
| 66 |   (FragmentationClearFragmentationState) \
 | 
|---|
| 67 |   (FragmentationEvaluateStability) \
 | 
|---|
| 68 |   (FragmentationFragmentation) \
 | 
|---|
| 69 |   (FragmentationFragmentationAutomation) \
 | 
|---|
| 70 |   (FragmentationMolecularDynamics) \
 | 
|---|
| 71 |   (FragmentationParseFragmentJobs) \
 | 
|---|
| 72 |   (FragmentationParseFragmentResults) \
 | 
|---|
| 73 |   (FragmentationSaveFragmentResults) \
 | 
|---|
| 74 |   (FragmentationStoreSaturatedFragment) \
 | 
|---|
| 75 |   (FragmentationStructuralOptimization) \
 | 
|---|
| 76 |   (GeometryDistanceToVector) \
 | 
|---|
| 77 |   (GeometryInputToVector) \
 | 
|---|
| 78 |   (GeometryPlaneToVector) \
 | 
|---|
| 79 |   (GeometryPositionToVector) \
 | 
|---|
| 80 |   (GeometryRemove) \
 | 
|---|
| 81 |   (GraphChemicalSpaceEvaluator) \
 | 
|---|
| 82 |   (GraphUpdateMolecules) \
 | 
|---|
| 83 |   (GraphCorrectBondDegree) \
 | 
|---|
| 84 |   (GraphCreateAdjacency) \
 | 
|---|
| 85 |   (GraphDepthFirstSearch) \
 | 
|---|
| 86 |   (GraphDestroyAdjacency) \
 | 
|---|
| 87 |   (GraphPrintSelectedAtomsAsGraphString) \
 | 
|---|
| 88 |   (GraphSubgraphDissection) \
 | 
|---|
| 89 |   (MoleculeBondFile) \
 | 
|---|
| 90 |   (MoleculeChangeName) \
 | 
|---|
| 91 |   (MoleculeChangeBondAngle) \
 | 
|---|
| 92 |   (MoleculeCopy) \
 | 
|---|
| 93 |   (MoleculeForceAnnealing) \
 | 
|---|
| 94 |   (MoleculeLinearInterpolationofTrajectories) \
 | 
|---|
| 95 |   (MoleculeLoad) \
 | 
|---|
| 96 |   (MoleculeRemove) \
 | 
|---|
| 97 |   (MoleculeRotateAroundBond) \
 | 
|---|
| 98 |   (MoleculeRotateAroundSelfByAngle) \
 | 
|---|
| 99 |   (MoleculeRotateToPrincipalAxisSystem) \
 | 
|---|
| 100 |   (MoleculeSaveAdjacency) \
 | 
|---|
| 101 |   (MoleculeSaveBonds) \
 | 
|---|
| 102 |   (MoleculeSaveSelectedMolecules) \
 | 
|---|
| 103 |   (MoleculeSaveEnergies) \
 | 
|---|
| 104 |   (MoleculeStretchBond) \
 | 
|---|
| 105 |   (MoleculeTranslate) \
 | 
|---|
| 106 |   (MoleculeVerletIntegration) \
 | 
|---|
| 107 |   (PotentialClearHomologies) \
 | 
|---|
| 108 |   (PotentialFitPartialCharges) \
 | 
|---|
| 109 |   (PotentialGeneratePotentials) \
 | 
|---|
| 110 |   (PotentialParseAtomFragments) \
 | 
|---|
| 111 |   (PotentialParseHomologies) \
 | 
|---|
| 112 |   (PotentialParseParticleParameters) \
 | 
|---|
| 113 |   (PotentialParsePotentials) \
 | 
|---|
| 114 |   (PotentialSaveAtomFragments) \
 | 
|---|
| 115 |   (PotentialSaveHomologies) \
 | 
|---|
| 116 |   (PotentialSaveParticleParameters) \
 | 
|---|
| 117 |   (PotentialSavePotentials) \
 | 
|---|
| 118 |   (ParserSaveSelectedAtomsAsExtTypes) \
 | 
|---|
| 119 |   (ParserSetParserParameters) \
 | 
|---|
| 120 |   (ParserSetOutputFormats) \
 | 
|---|
| 121 |   (ParserSetTremoloAtomdata) \
 | 
|---|
| 122 |   (Undo) \
 | 
|---|
| 123 |   (SelectionAllAtoms) \
 | 
|---|
| 124 |   (SelectionAllAtomsInsideVolume) \
 | 
|---|
| 125 |   (SelectionAllAtomsOfMolecule) \
 | 
|---|
| 126 |   (SelectionAllMolecules) \
 | 
|---|
| 127 |   (SelectionAllShapes) \
 | 
|---|
| 128 |   (SelectionAtomBondNeighbors) \
 | 
|---|
| 129 |   (SelectionAtomByElement) \
 | 
|---|
| 130 |   (SelectionAtomById) \
 | 
|---|
| 131 |   (SelectionAtomByName) \
 | 
|---|
| 132 |   (SelectionAtomByOrder) \
 | 
|---|
| 133 |   (SelectionAtomByRandom) \
 | 
|---|
| 134 |   (SelectionClearAllAtoms) \
 | 
|---|
| 135 |   (SelectionClearAllMolecules) \
 | 
|---|
| 136 |   (SelectionInvertAtoms) \
 | 
|---|
| 137 |   (SelectionInvertMolecules) \
 | 
|---|
| 138 |   (SelectionMoleculeOfAtom) \
 | 
|---|
| 139 |   (SelectionMoleculeByFormula) \
 | 
|---|
| 140 |   (SelectionMoleculeById) \
 | 
|---|
| 141 |   (SelectionMoleculeByName) \
 | 
|---|
| 142 |   (SelectionMoleculeByOrder) \
 | 
|---|
| 143 |   (SelectionNotAllAtoms) \
 | 
|---|
| 144 |   (SelectionNotAllAtomsInsideVolume) \
 | 
|---|
| 145 |   (SelectionNotAllAtomsOfMolecule) \
 | 
|---|
| 146 |   (SelectionNotAllMolecules) \
 | 
|---|
| 147 |   (SelectionNotAllShapes) \
 | 
|---|
| 148 |   (SelectionNotAtomByElement) \
 | 
|---|
| 149 |   (SelectionNotAtomById) \
 | 
|---|
| 150 |   (SelectionNotAtomByName) \
 | 
|---|
| 151 |   (SelectionNotAtomByOrder) \
 | 
|---|
| 152 |   (SelectionNotMoleculeOfAtom) \
 | 
|---|
| 153 |   (SelectionNotMoleculeByFormula) \
 | 
|---|
| 154 |   (SelectionNotMoleculeById) \
 | 
|---|
| 155 |   (SelectionNotMoleculeByName) \
 | 
|---|
| 156 |   (SelectionNotMoleculeByOrder) \
 | 
|---|
| 157 |   (SelectionNotShapeByName) \
 | 
|---|
| 158 |   (SelectionPopAtoms) \
 | 
|---|
| 159 |   (SelectionPushAtoms) \
 | 
|---|
| 160 |   (SelectionPopMolecules) \
 | 
|---|
| 161 |   (SelectionPushMolecules) \
 | 
|---|
| 162 |   (SelectionShapeByName) \
 | 
|---|
| 163 |   (ShapeCombineShapes) \
 | 
|---|
| 164 |   (ShapeCreateShape) \
 | 
|---|
| 165 |   (ShapeRemoveShape) \
 | 
|---|
| 166 |   (ShapeRotateShape) \
 | 
|---|
| 167 |   (ShapeStretchShape) \
 | 
|---|
| 168 |   (ShapeTranslateShape) \
 | 
|---|
| 169 |   (TesselationConvexEnvelope) \
 | 
|---|
| 170 |   (TesselationNonConvexEnvelope) \
 | 
|---|
| 171 |   (WorldAddEmptyBoundary) \
 | 
|---|
| 172 |   (WorldBoundInBox) \
 | 
|---|
| 173 |   (WorldCenterInBox) \
 | 
|---|
| 174 |   (WorldCenterOnEdge) \
 | 
|---|
| 175 |   (WorldChangeBox) \
 | 
|---|
| 176 |   (WorldInput) \
 | 
|---|
| 177 |   (WorldOutput) \
 | 
|---|
| 178 |   (WorldOutputAs) \
 | 
|---|
| 179 |   (WorldRepeatBox) \
 | 
|---|
| 180 |   (WorldScaleBox) \
 | 
|---|
| 181 |   (WorldSetBoundaryConditions) \
 | 
|---|
| 182 |   (WorldSetDefaultName) \
 | 
|---|
| 183 |   (WorldSetWorldTime) \
 | 
|---|
| 184 |   (WorldStepWorldTime)
 | 
|---|
| 185 | 
 | 
|---|
| 186 | // extend list of actions in case levmar is available
 | 
|---|
| 187 | #ifdef HAVE_LEVMAR
 | 
|---|
| 188 | #define GLOBALLISTOFACTIONS_LEVMAR \
 | 
|---|
| 189 |     BOOST_PP_SEQ_PUSH_BACK( \
 | 
|---|
| 190 |                 BOOST_PP_SEQ_PUSH_BACK( \
 | 
|---|
| 191 |                                 GLOBALLISTOFACTIONS_initial, \
 | 
|---|
| 192 |                                 PotentialFitPotential \
 | 
|---|
| 193 |                 ), \
 | 
|---|
| 194 |         PotentialFitCompoundPotential \
 | 
|---|
| 195 |     )
 | 
|---|
| 196 | #else
 | 
|---|
| 197 | #define GLOBALLISTOFACTIONS_LEVMAR \
 | 
|---|
| 198 |     GLOBALLISTOFACTIONS_initial
 | 
|---|
| 199 | #endif /* HAVE_LEVMAR */
 | 
|---|
| 200 | 
 | 
|---|
| 201 | // define final list
 | 
|---|
| 202 | #ifdef HAVE_PYTHON
 | 
|---|
| 203 | #define GLOBALLISTOFACTIONS_PYTHON \
 | 
|---|
| 204 |     BOOST_PP_SEQ_PUSH_BACK( \
 | 
|---|
| 205 |         GLOBALLISTOFACTIONS_LEVMAR, \
 | 
|---|
| 206 |         CommandLoadSession \
 | 
|---|
| 207 |     )
 | 
|---|
| 208 | #else
 | 
|---|
| 209 | #define GLOBALLISTOFACTIONS_PYTHON \
 | 
|---|
| 210 |     GLOBALLISTOFACTIONS_LEVMAR
 | 
|---|
| 211 | #endif
 | 
|---|
| 212 | 
 | 
|---|
| 213 | #define GLOBALLISTOFACTIONS GLOBALLISTOFACTIONS_PYTHON
 | 
|---|
| 214 | 
 | 
|---|
| 215 | // define python list
 | 
|---|
| 216 | // skips CommandLoadSession as this causes dangerous infinite loops
 | 
|---|
| 217 | #define GLOBALLISTOFPYTHONACTIONS \
 | 
|---|
| 218 |   GLOBALLISTOFACTIONS_LEVMAR
 | 
|---|
| 219 | 
 | 
|---|
| 220 | #endif /* GLOBALLISTOFACTIONS_HPP_ */
 | 
|---|
| 221 | 
 | 
|---|