[83e90c] | 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 |
|
---|
[004d5c] | 16 | #include <boost/preprocessor/seq/push_back.hpp>
|
---|
[975b83] | 17 | #include <boost/preprocessor/seq/remove.hpp>
|
---|
[004d5c] | 18 |
|
---|
| 19 | // this is global list of actions valid for all cases
|
---|
[442495] | 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
|
---|
[004d5c] | 22 | #define GLOBALLISTOFACTIONS_initial \
|
---|
| 23 | (Redo) \
|
---|
[442495] | 24 | (AnalysisDipoleAngularCorrelation) \
|
---|
| 25 | (AnalysisDipoleCorrelation) \
|
---|
| 26 | (AnalysisMolecularVolume) \
|
---|
| 27 | (AnalysisPairCorrelation) \
|
---|
| 28 | (AnalysisPointCorrelation) \
|
---|
| 29 | (AnalysisPrincipalAxisSystem) \
|
---|
| 30 | (AnalysisSurfaceCorrelation) \
|
---|
| 31 | (AtomAdd) \
|
---|
| 32 | (AtomChangeElement) \
|
---|
| 33 | (AtomRemove) \
|
---|
| 34 | (AtomRotateAroundOriginByAngle) \
|
---|
| 35 | (AtomSaveSelectedAtoms) \
|
---|
| 36 | (AtomTranslate) \
|
---|
| 37 | (BondAdd) \
|
---|
| 38 | (BondRemove) \
|
---|
| 39 | (CommandElementDb) \
|
---|
| 40 | (CommandBondLengthTable) \
|
---|
| 41 | (CommandFastParsing) \
|
---|
| 42 | (CommandHelp) \
|
---|
| 43 | (CommandHelpRedistribute) \
|
---|
| 44 | (CommandSetRandomNumbersEngine) \
|
---|
| 45 | (CommandSetRandomNumbersDistribution) \
|
---|
| 46 | (CommandStoreSession) \
|
---|
| 47 | (CommandVerbose) \
|
---|
| 48 | (CommandVersion) \
|
---|
| 49 | (CommandWarranty) \
|
---|
| 50 | (FillRegularGrid) \
|
---|
| 51 | (FillSurface) \
|
---|
[aa55d0] | 52 | (FillSuspendInMolecule) \
|
---|
[6801f4] | 53 | (FillVolume) \
|
---|
[442495] | 54 | (FragmentationAnalyseFragmentationResults) \
|
---|
| 55 | (FragmentationClearFragmentationResults) \
|
---|
| 56 | (FragmentationFragmentation) \
|
---|
| 57 | (FragmentationFragmentationAutomation) \
|
---|
| 58 | (FragmentationMolecularDynamics) \
|
---|
| 59 | (FragmentationParseFragmentJobs) \
|
---|
| 60 | (FragmentationStoreSaturatedFragment) \
|
---|
[e5f61ba] | 61 | (FragmentationStructuralOptimization) \
|
---|
[22b786] | 62 | (GraphUpdateMolecules) \
|
---|
[343c5a] | 63 | (GraphCorrectBondDegree) \
|
---|
[004d5c] | 64 | (GraphCreateAdjacency) \
|
---|
| 65 | (GraphDepthFirstSearch) \
|
---|
[560cbf] | 66 | (GraphDestroyAdjacency) \
|
---|
[22b786] | 67 | (GraphSubgraphDissection) \
|
---|
[442495] | 68 | (MoleculeBondFile) \
|
---|
| 69 | (MoleculeChangeName) \
|
---|
| 70 | (MoleculeChangeBondAngle) \
|
---|
[004d5c] | 71 | (MoleculeCopy) \
|
---|
[1a48d2] | 72 | (MoleculeForceAnnealing) \
|
---|
[442495] | 73 | (MoleculeLinearInterpolationofTrajectories) \
|
---|
| 74 | (MoleculeLoad) \
|
---|
[004d5c] | 75 | (MoleculeRotateAroundSelfByAngle) \
|
---|
[442495] | 76 | (MoleculeRotateToPrincipalAxisSystem) \
|
---|
| 77 | (MoleculeSaveAdjacency) \
|
---|
[004d5c] | 78 | (MoleculeSaveBonds) \
|
---|
[442495] | 79 | (MoleculeSaveSelectedMolecules) \
|
---|
| 80 | (MoleculeSaveTemperature) \
|
---|
[3a51bd] | 81 | (MoleculeStretchBond) \
|
---|
[442495] | 82 | (MoleculeVerletIntegration) \
|
---|
| 83 | (PotentialFitParticleCharges) \
|
---|
| 84 | (PotentialParseHomologies) \
|
---|
| 85 | (PotentialSaveHomologies) \
|
---|
[004d5c] | 86 | (ParserParseTremoloPotentials) \
|
---|
| 87 | (ParserSaveSelectedAtomsAsExtTypes) \
|
---|
| 88 | (ParserSetParserParameters) \
|
---|
| 89 | (ParserSetOutputFormats) \
|
---|
[442495] | 90 | (ParserSetTremoloAtomdata) \
|
---|
[004d5c] | 91 | (Undo) \
|
---|
[442495] | 92 | (SelectionAllAtoms) \
|
---|
| 93 | (SelectionAllAtomsInsideVolume) \
|
---|
| 94 | (SelectionAllAtomsOfMolecule) \
|
---|
[004d5c] | 95 | (SelectionAllMolecules) \
|
---|
[442495] | 96 | (SelectionAllShapes) \
|
---|
| 97 | (SelectionAtomByElement) \
|
---|
| 98 | (SelectionAtomById) \
|
---|
| 99 | (SelectionAtomByOrder) \
|
---|
| 100 | (SelectionClearAllAtoms) \
|
---|
[004d5c] | 101 | (SelectionClearAllMolecules) \
|
---|
[442495] | 102 | (SelectionInvertAtoms) \
|
---|
[ebc499] | 103 | (SelectionInvertMolecules) \
|
---|
[442495] | 104 | (SelectionMoleculeOfAtom) \
|
---|
[004d5c] | 105 | (SelectionMoleculeByFormula) \
|
---|
[442495] | 106 | (SelectionMoleculeById) \
|
---|
| 107 | (SelectionMoleculeByName) \
|
---|
| 108 | (SelectionMoleculeByOrder) \
|
---|
[004d5c] | 109 | (SelectionNotAllAtoms) \
|
---|
[eff536] | 110 | (SelectionNotAllAtomsInsideVolume) \
|
---|
[004d5c] | 111 | (SelectionNotAllAtomsOfMolecule) \
|
---|
[442495] | 112 | (SelectionNotAllMolecules) \
|
---|
[a27dcb] | 113 | (SelectionNotAllShapes) \
|
---|
[442495] | 114 | (SelectionNotAtomById) \
|
---|
| 115 | (SelectionNotAtomByElement) \
|
---|
| 116 | (SelectionNotAtomByOrder) \
|
---|
| 117 | (SelectionNotMoleculeOfAtom) \
|
---|
| 118 | (SelectionNotMoleculeByFormula) \
|
---|
| 119 | (SelectionNotMoleculeById) \
|
---|
| 120 | (SelectionNotMoleculeByName) \
|
---|
| 121 | (SelectionNotMoleculeByOrder) \
|
---|
[2c004d] | 122 | (SelectionNotShapeByName) \
|
---|
[442495] | 123 | (SelectionShapeByName) \
|
---|
[d475a6] | 124 | (ShapeCombineShapes) \
|
---|
[f20da5] | 125 | (ShapeCreateShape) \
|
---|
[0b5057] | 126 | (ShapeRemoveShape) \
|
---|
[a2bbb1] | 127 | (ShapeRotateShape) \
|
---|
[29ea65] | 128 | (ShapeStretchShape) \
|
---|
[442495] | 129 | (ShapeTranslateShape) \
|
---|
| 130 | (TesselationConvexEnvelope) \
|
---|
| 131 | (TesselationNonConvexEnvelope) \
|
---|
| 132 | (WorldAddEmptyBoundary) \
|
---|
| 133 | (WorldBoundInBox) \
|
---|
| 134 | (WorldCenterInBox) \
|
---|
| 135 | (WorldCenterOnEdge) \
|
---|
| 136 | (WorldChangeBox) \
|
---|
| 137 | (WorldInput) \
|
---|
| 138 | (WorldOutput) \
|
---|
| 139 | (WorldOutputAs) \
|
---|
| 140 | (WorldRepeatBox) \
|
---|
| 141 | (WorldScaleBox) \
|
---|
| 142 | (WorldSetBoundaryConditions) \
|
---|
| 143 | (WorldSetDefaultName) \
|
---|
| 144 | (WorldSetWorldTime)
|
---|
[004d5c] | 145 |
|
---|
[786d28] | 146 | // extend list of actions in case levmar is available
|
---|
[48d20d] | 147 | #ifdef HAVE_LEVMAR
|
---|
| 148 | #define GLOBALLISTOFACTIONS_LEVMAR \
|
---|
| 149 | BOOST_PP_SEQ_PUSH_BACK( \
|
---|
[786d28] | 150 | GLOBALLISTOFACTIONS_initial, \
|
---|
[f5724f] | 151 | PotentialFitPotential \
|
---|
[48d20d] | 152 | )
|
---|
| 153 | #else
|
---|
| 154 | #define GLOBALLISTOFACTIONS_LEVMAR \
|
---|
[786d28] | 155 | GLOBALLISTOFACTIONS_initial
|
---|
[48d20d] | 156 | #endif /* HAVE_LEVMAR */
|
---|
| 157 |
|
---|
| 158 | // define final list
|
---|
[0d4168] | 159 | #ifdef HAVE_PYTHON
|
---|
| 160 | #define GLOBALLISTOFACTIONS_PYTHON \
|
---|
| 161 | BOOST_PP_SEQ_PUSH_BACK( \
|
---|
| 162 | GLOBALLISTOFACTIONS_LEVMAR, \
|
---|
| 163 | CommandLoadSession \
|
---|
| 164 | )
|
---|
| 165 | #else
|
---|
| 166 | #define GLOBALLISTOFACTIONS_PYTHON \
|
---|
| 167 | GLOBALLISTOFACTIONS_LEVMAR
|
---|
| 168 | #endif
|
---|
| 169 |
|
---|
| 170 | #define GLOBALLISTOFACTIONS GLOBALLISTOFACTIONS_PYTHON
|
---|
| 171 |
|
---|
| 172 | // define python list
|
---|
| 173 | // skips CommandLoadSession as this causes dangerous infinite loops
|
---|
| 174 | #define GLOBALLISTOFPYTHONACTIONS \
|
---|
| 175 | GLOBALLISTOFACTIONS_LEVMAR
|
---|
[48d20d] | 176 |
|
---|
[83e90c] | 177 | #endif /* GLOBALLISTOFACTIONS_HPP_ */
|
---|
| 178 |
|
---|