Changeset 353e82 for src/Actions/MapOfActions.cpp
- Timestamp:
- Aug 9, 2010, 6:34:36 PM (15 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
- Children:
- 0d02fb, 4e6d74, e41c48
- Parents:
- b5c53d (diff), 1cc87e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/MapOfActions.cpp
rb5c53d r353e82 42 42 #include "Actions/AtomAction/ChangeElementAction.hpp" 43 43 #include "Actions/AtomAction/RemoveAction.hpp" 44 #include "Actions/AtomAction/RotateAroundOriginByAngleAction.hpp" 45 #include "Actions/AtomAction/TranslateAction.hpp" 44 46 #include "Actions/CmdAction/BondLengthTableAction.hpp" 45 47 #include "Actions/CmdAction/ElementDbAction.hpp" … … 55 57 #include "Actions/MoleculeAction/FillWithMoleculeAction.hpp" 56 58 #include "Actions/MoleculeAction/LinearInterpolationofTrajectoriesAction.hpp" 57 #include "Actions/MoleculeAction/RotateAroundOriginByAngleAction.hpp"58 59 #include "Actions/MoleculeAction/RotateAroundSelfByAngleAction.hpp" 59 60 #include "Actions/MoleculeAction/RotateToPrincipalAxisSystemAction.hpp" … … 62 63 #include "Actions/MoleculeAction/SaveTemperatureAction.hpp" 63 64 #include "Actions/MoleculeAction/SuspendInWaterAction.hpp" 64 #include "Actions/MoleculeAction/TranslateAction.hpp"65 65 #include "Actions/MoleculeAction/VerletIntegrationAction.hpp" 66 66 #include "Actions/ParserAction/LoadXyzAction.hpp" 67 67 #include "Actions/ParserAction/SaveXyzAction.hpp" 68 68 #include "Actions/SelectionAction/AllAtomsAction.hpp" 69 #include "Actions/SelectionAction/AllAtomsInsideCuboidAction.hpp" 70 #include "Actions/SelectionAction/AllAtomsInsideSphereAction.hpp" 71 #include "Actions/SelectionAction/AllAtomsOfMoleculeAction.hpp" 69 72 #include "Actions/SelectionAction/AllMoleculesAction.hpp" 70 73 #include "Actions/SelectionAction/AtomByIdAction.hpp" 74 #include "Actions/SelectionAction/ClearAllAtomsAction.hpp" 75 #include "Actions/SelectionAction/ClearAllMoleculesAction.hpp" 71 76 #include "Actions/SelectionAction/MoleculeByIdAction.hpp" 77 #include "Actions/SelectionAction/MoleculeOfAtomAction.hpp" 72 78 #include "Actions/SelectionAction/NotAllAtomsAction.hpp" 79 #include "Actions/SelectionAction/NotAllAtomsInsideCuboidAction.hpp" 80 #include "Actions/SelectionAction/NotAllAtomsInsideSphereAction.hpp" 81 #include "Actions/SelectionAction/NotAllAtomsOfMoleculeAction.hpp" 73 82 #include "Actions/SelectionAction/NotAllMoleculesAction.hpp" 74 83 #include "Actions/SelectionAction/NotAtomByIdAction.hpp" 75 84 #include "Actions/SelectionAction/NotMoleculeByIdAction.hpp" 85 #include "Actions/SelectionAction/NotMoleculeOfAtomAction.hpp" 76 86 #include "Actions/TesselationAction/ConvexEnvelopeAction.hpp" 77 87 #include "Actions/TesselationAction/NonConvexEnvelopeAction.hpp" … … 83 93 #include "Actions/WorldAction/InputAction.hpp" 84 94 #include "Actions/WorldAction/OutputAction.hpp" 85 #include "Actions/WorldAction/RemoveSphereOfAtomsAction.hpp"86 95 #include "Actions/WorldAction/RepeatBoxAction.hpp" 87 96 #include "Actions/WorldAction/ScaleBoxAction.hpp" … … 184 193 DescriptionMap["change-element"] = "change the element of an atom"; 185 194 DescriptionMap["change-molname"] = "change the name of a molecule"; 195 DescriptionMap["clear-atom-selection"] = "clear the atom selection"; 196 DescriptionMap["clear-molecule-selection"] = "clear the molecule selection"; 186 197 DescriptionMap["convex-envelope"] = "create the convex envelope for a molecule"; 187 198 DescriptionMap["default-molname"] = "set the default name of new molecules"; … … 202 213 DescriptionMap["point-correlation"] = "pair correlation analysis between element and point"; 203 214 DescriptionMap["principal-axis-system"] = "calculate the principal axis system of the specified molecule"; 215 DescriptionMap["redo"] = "redo last action"; 204 216 DescriptionMap["remove-atom"] = "remove a specified atom"; 205 DescriptionMap["remove-sphere"] = "remove sphere of atoms of around a specified atom";206 217 DescriptionMap["repeat-box"] = "create periodic copies of the simulation box per axis"; 207 DescriptionMap["rotate-origin"] = "rotate s molecules by a specific angle around origin";218 DescriptionMap["rotate-origin"] = "rotate selected atoms by a specific angle around origin"; 208 219 DescriptionMap["rotate-self"] = "rotates molecules by a specific angle around own center of gravity"; 209 220 DescriptionMap["rotate-to-pas"] = "calculate the principal axis system of the specified molecule and rotate specified axis to align with main axis"; … … 216 227 DescriptionMap["select-all-molecules"] = "select all molecules"; 217 228 DescriptionMap["select-atom-by-id"] = "select an atom by index"; 229 DescriptionMap["select-atoms-inside-cuboid"] = "select all atoms inside a cuboid"; 230 DescriptionMap["select-atoms-inside-sphere"] = "select all atoms inside a sphere"; 218 231 DescriptionMap["select-molecule-by-id"] = "select a molecule by index"; 232 DescriptionMap["select-molecule-of-atom"] = "select a molecule to which a given atom belongs"; 233 DescriptionMap["select-molecules-atoms"] = "select all atoms of a molecule"; 219 234 DescriptionMap["set-basis"] = "set the name of the gaussian basis set for MPQC"; 220 235 DescriptionMap["set-output"] = "specify output formats"; … … 222 237 DescriptionMap["surface-correlation"] = "pair correlation analysis between element and surface"; 223 238 DescriptionMap["suspend-in-water"] = "suspend the given molecule in water such that in the domain the mean density is as specified"; 224 DescriptionMap["translate-mol"] = "translate molecule by given vector"; 239 DescriptionMap["translate-atoms"] = "translate all selected atoms by given vector"; 240 DescriptionMap["undo"] = "undo last action"; 225 241 DescriptionMap["unselect-all-atoms"] = "unselect all atoms"; 226 242 DescriptionMap["unselect-all-molecules"] = "unselect all molecules"; 227 243 DescriptionMap["unselect-atom-by-id"] = "unselect an atom by index"; 244 DescriptionMap["unselect-atoms-inside-cuboid"] = "unselect all atoms inside a cuboid"; 245 DescriptionMap["unselect-atoms-inside-sphere"] = "unselect all atoms inside a sphere"; 228 246 DescriptionMap["unselect-molecule-by-id"] = "unselect a molecule by index"; 247 DescriptionMap["unselect-molecule-of-atom"] = "unselect a molecule to which a given atom belongs"; 248 DescriptionMap["unselect-molecules-atoms"] = "unselect all atoms of a molecule"; 229 249 DescriptionMap["verbose"] = "set verbosity level"; 230 250 DescriptionMap["verlet-integrate"] = "perform verlet integration of a given force file"; … … 279 299 ShortFormMap["parse-xyz"] = "p"; 280 300 ShortFormMap["remove-atom"] = "r"; 281 ShortFormMap["remove-sphere"] = "R";282 301 ShortFormMap["repeat-box"] = "d"; 283 302 ShortFormMap["rotate-to-pas"] = "m"; … … 290 309 ShortFormMap["subgraph-dissect"] = "I"; 291 310 ShortFormMap["suspend-in-water"] = "u"; 292 ShortFormMap["translate- mol"] = "t";311 ShortFormMap["translate-atoms"] = "t"; 293 312 ShortFormMap["verbose"] = "v"; 294 313 ShortFormMap["verlet-integrate"] = "P"; … … 304 323 TypeMap["change-element"] = &typeid(const element); 305 324 TypeMap["change-molname"] = &typeid(std::string); 325 TypeMap["clear-atom-selection"] = &typeid(void); 326 TypeMap["clear-molecule-selection"] = &typeid(void); 306 327 TypeMap["convex-envelope"] = &typeid(void); 307 328 TypeMap["default-molname"] = &typeid(std::string); … … 320 341 TypeMap["point-correlation"] = &typeid(void); 321 342 TypeMap["principal-axis-system"] = &typeid(void); 343 TypeMap["redo"] = &typeid(void); 322 344 TypeMap["remove-atom"] = &typeid(void); 323 TypeMap["remove-sphere"] = &typeid(double);324 345 TypeMap["repeat-box"] = &typeid(VectorValue); 325 346 TypeMap["rotate-origin"] = &typeid(double); … … 330 351 TypeMap["save-temperature"] = &typeid(std::string); 331 352 TypeMap["scale-box"] = &typeid(VectorValue); 353 TypeMap["select-all-atoms"] = &typeid(void); 354 TypeMap["select-all-molecules"] = &typeid(void); 355 TypeMap["select-atom-by-id"] = &typeid(atom); 356 TypeMap["select-atoms-inside-cuboid"] = &typeid(VectorValue); 357 TypeMap["select-atoms-inside-sphere"] = &typeid(double); 358 TypeMap["select-molecule-by-id"] = &typeid(molecule); 359 TypeMap["select-molecule-of-atom"] = &typeid(atom); 360 TypeMap["select-molecules-atoms"] = &typeid(molecule); 332 361 TypeMap["set-basis"] = &typeid(std::string); 333 362 TypeMap["set-output"] = &typeid(std::vector<std::string>); … … 335 364 TypeMap["surface-correlation"] = &typeid(void); 336 365 TypeMap["suspend-in-water"] = &typeid(double); 337 TypeMap["translate-mol"] = &typeid(VectorValue); 366 TypeMap["translate-atoms"] = &typeid(VectorValue); 367 TypeMap["undo"] = &typeid(void); 368 TypeMap["unselect-all-atoms"] = &typeid(void); 369 TypeMap["unselect-all-molecules"] = &typeid(void); 370 TypeMap["unselect-atom-by-id"] = &typeid(atom); 371 TypeMap["unselect-atoms-inside-cuboid"] = &typeid(VectorValue); 372 TypeMap["unselect-atoms-inside-sphere"] = &typeid(double); 373 TypeMap["unselect-molecule-by-id"] = &typeid(molecule); 374 TypeMap["unselect-molecule-of-atom"] = &typeid(atom); 375 TypeMap["unselect-molecules-atoms"] = &typeid(molecule); 338 376 TypeMap["verlet-integrate"] = &typeid(std::string); 339 377 TypeMap["verbose"] = &typeid(int); … … 361 399 TypeMap["periodic"] = &typeid(bool); 362 400 TypeMap["position"] = &typeid(VectorValue); 363 TypeMap["select-all-atoms"] = &typeid(void);364 TypeMap["select-all-molecules"] = &typeid(void);365 TypeMap["select-atom-by-id"] = &typeid(atom);366 TypeMap["select-molecule-by-id"] = &typeid(molecule);367 401 TypeMap["start-step"] = &typeid(int); 368 TypeMap["unselect-all-atoms"] = &typeid(void);369 TypeMap["unselect-all-molecules"] = &typeid(void);370 TypeMap["unselect-atom-by-id"] = &typeid(atom);371 TypeMap["unselect-molecule-by-id"] = &typeid(molecule);372 402 373 403 TypeEnumMap[&typeid(void)] = None; … … 414 444 MenuContainsActionMap.insert( pair<std::string, std::string> ("atom", "change-element") ); 415 445 MenuContainsActionMap.insert( pair<std::string, std::string> ("atom", "remove-atom") ); 446 MenuContainsActionMap.insert( pair<std::string, std::string> ("atom", "translate-atoms") ); 416 447 417 448 MenuContainsActionMap.insert( pair<std::string, std::string> ("command", "bond-table") ); … … 436 467 MenuContainsActionMap.insert( pair<std::string, std::string> ("molecule", "save-temperature") ); 437 468 MenuContainsActionMap.insert( pair<std::string, std::string> ("molecule", "suspend-in-water") ); 438 MenuContainsActionMap.insert( pair<std::string, std::string> ("molecule", "translate-mol") );439 469 MenuContainsActionMap.insert( pair<std::string, std::string> ("molecule", "verlet-integrate") ); 440 470 … … 442 472 MenuContainsActionMap.insert( pair<std::string, std::string> ("parser", "SaveXyz") ); 443 473 474 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "clear-atom-selection") ); 475 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "clear-molecule-selection") ); 476 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-all-atoms") ); 477 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-all-molecules") ); 444 478 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-atom-by-id") ); 479 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-atoms-inside-cuboid") ); 480 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-atoms-inside-sphere") ); 445 481 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-molecule-by-id") ); 482 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-molecule-of-atom") ); 483 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-molecules-atoms") ); 484 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-all-atoms") ); 485 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-all-molecules") ); 446 486 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-atom-by-id") ); 487 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-atoms-inside-cuboid") ); 488 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-atoms-inside-sphere") ); 447 489 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-molecule-by-id") ); 490 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-molecule-of-atom") ); 491 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-molecules-atoms") ); 448 492 449 493 MenuContainsActionMap.insert( pair<std::string, std::string> ("tesselation", "convex-envelope") ); … … 457 501 MenuContainsActionMap.insert( pair<std::string, std::string> ("world", "input") ); 458 502 MenuContainsActionMap.insert( pair<std::string, std::string> ("world", "output") ); 459 MenuContainsActionMap.insert( pair<std::string, std::string> ("world", "remove-sphere") );460 503 MenuContainsActionMap.insert( pair<std::string, std::string> ("world", "repeat-box") ); 461 504 MenuContainsActionMap.insert( pair<std::string, std::string> ("world", "scale-box") ); … … 474 517 generic.insert("change-box"); 475 518 // generic.insert("change-molname"); 476 generic.insert("change-element"); 519 generic.insert("change-element"); 520 generic.insert("clear-atom-selection"); 521 generic.insert("clear-molecule-selection"); 477 522 generic.insert("convex-envelope"); 478 523 generic.insert("default-molname"); … … 492 537 generic.insert("point-correlation"); 493 538 // generic.insert("principal-axis-system"); 539 generic.insert("redo"); 494 540 generic.insert("remove-atom"); 495 generic.insert("remove-sphere");496 541 generic.insert("repeat-box"); 497 542 generic.insert("rotate-origin"); … … 505 550 generic.insert("select-all-molecules"); 506 551 generic.insert("select-atom-by-id"); 552 generic.insert("select-atoms-inside-cuboid"); 553 generic.insert("select-atoms-inside-sphere"); 507 554 generic.insert("select-molecule-by-id"); 555 generic.insert("select-molecule-of-atom"); 556 generic.insert("select-molecules-atoms"); 508 557 generic.insert("set-basis"); 509 558 generic.insert("set-output"); … … 511 560 generic.insert("surface-correlation"); 512 561 generic.insert("suspend-in-water"); 513 generic.insert("translate-mol"); 562 generic.insert("translate-atoms"); 563 generic.insert("undo"); 514 564 generic.insert("unselect-all-atoms"); 515 565 generic.insert("unselect-all-molecules"); 516 566 generic.insert("unselect-atom-by-id"); 567 generic.insert("unselect-atoms-inside-cuboid"); 568 generic.insert("unselect-atoms-inside-sphere"); 517 569 generic.insert("unselect-molecule-by-id"); 570 generic.insert("unselect-molecule-of-atom"); 571 generic.insert("unselect-molecules-atoms"); 518 572 generic.insert("verbose"); 519 573 generic.insert("verlet-integrate"); … … 801 855 new AtomChangeElementAction(); 802 856 new AtomRemoveAction(); 857 new AtomRotateAroundOriginByAngleAction(); 858 new AtomTranslateAction(); 803 859 804 860 new CommandLineBondLengthTableAction(); … … 817 873 new MoleculeFillWithMoleculeAction(); 818 874 new MoleculeLinearInterpolationofTrajectoriesAction(); 819 new MoleculeRotateAroundOriginByAngleAction();820 875 new MoleculeRotateAroundSelfByAngleAction(); 821 876 new MoleculeRotateToPrincipalAxisSystemAction(); … … 824 879 new MoleculeSaveTemperatureAction(); 825 880 new MoleculeSuspendInWaterAction(); 826 new MoleculeTranslateAction();827 881 new MoleculeVerletIntegrationAction(); 828 882 … … 830 884 new ParserSaveXyzAction(); 831 885 886 new SelectionClearAllAtomsAction(); 887 new SelectionClearAllMoleculesAction(); 832 888 new SelectionAllAtomsAction(); 889 new SelectionAllAtomsInsideCuboidAction(); 890 new SelectionAllAtomsInsideSphereAction(); 891 new SelectionAllAtomsOfMoleculeAction(); 833 892 new SelectionAllMoleculesAction(); 834 893 new SelectionAtomByIdAction(); 835 894 new SelectionMoleculeByIdAction(); 895 new SelectionMoleculeOfAtomAction(); 836 896 new SelectionNotAllAtomsAction(); 897 new SelectionNotAllAtomsInsideCuboidAction(); 898 new SelectionNotAllAtomsInsideSphereAction(); 899 new SelectionNotAllAtomsOfMoleculeAction(); 837 900 new SelectionNotAllMoleculesAction(); 838 901 new SelectionNotAtomByIdAction(); 839 902 new SelectionNotMoleculeByIdAction(); 903 new SelectionNotMoleculeOfAtomAction(); 840 904 841 905 new TesselationConvexEnvelopeAction(); … … 849 913 new WorldInputAction(); 850 914 new WorldOutputAction(); 851 new WorldRemoveSphereOfAtomsAction();852 915 new WorldRepeatBoxAction(); 853 916 new WorldScaleBoxAction();
Note:
See TracChangeset
for help on using the changeset viewer.