Ignore:
Timestamp:
Aug 9, 2010, 6:34:36 PM (15 years ago)
Author:
Frederik Heber <heber@…>
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.
Message:

Merge branch 'AddMoreActions' into stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/MapOfActions.cpp

    rb5c53d r353e82  
    4242#include "Actions/AtomAction/ChangeElementAction.hpp"
    4343#include "Actions/AtomAction/RemoveAction.hpp"
     44#include "Actions/AtomAction/RotateAroundOriginByAngleAction.hpp"
     45#include "Actions/AtomAction/TranslateAction.hpp"
    4446#include "Actions/CmdAction/BondLengthTableAction.hpp"
    4547#include "Actions/CmdAction/ElementDbAction.hpp"
     
    5557#include "Actions/MoleculeAction/FillWithMoleculeAction.hpp"
    5658#include "Actions/MoleculeAction/LinearInterpolationofTrajectoriesAction.hpp"
    57 #include "Actions/MoleculeAction/RotateAroundOriginByAngleAction.hpp"
    5859#include "Actions/MoleculeAction/RotateAroundSelfByAngleAction.hpp"
    5960#include "Actions/MoleculeAction/RotateToPrincipalAxisSystemAction.hpp"
     
    6263#include "Actions/MoleculeAction/SaveTemperatureAction.hpp"
    6364#include "Actions/MoleculeAction/SuspendInWaterAction.hpp"
    64 #include "Actions/MoleculeAction/TranslateAction.hpp"
    6565#include "Actions/MoleculeAction/VerletIntegrationAction.hpp"
    6666#include "Actions/ParserAction/LoadXyzAction.hpp"
    6767#include "Actions/ParserAction/SaveXyzAction.hpp"
    6868#include "Actions/SelectionAction/AllAtomsAction.hpp"
     69#include "Actions/SelectionAction/AllAtomsInsideCuboidAction.hpp"
     70#include "Actions/SelectionAction/AllAtomsInsideSphereAction.hpp"
     71#include "Actions/SelectionAction/AllAtomsOfMoleculeAction.hpp"
    6972#include "Actions/SelectionAction/AllMoleculesAction.hpp"
    7073#include "Actions/SelectionAction/AtomByIdAction.hpp"
     74#include "Actions/SelectionAction/ClearAllAtomsAction.hpp"
     75#include "Actions/SelectionAction/ClearAllMoleculesAction.hpp"
    7176#include "Actions/SelectionAction/MoleculeByIdAction.hpp"
     77#include "Actions/SelectionAction/MoleculeOfAtomAction.hpp"
    7278#include "Actions/SelectionAction/NotAllAtomsAction.hpp"
     79#include "Actions/SelectionAction/NotAllAtomsInsideCuboidAction.hpp"
     80#include "Actions/SelectionAction/NotAllAtomsInsideSphereAction.hpp"
     81#include "Actions/SelectionAction/NotAllAtomsOfMoleculeAction.hpp"
    7382#include "Actions/SelectionAction/NotAllMoleculesAction.hpp"
    7483#include "Actions/SelectionAction/NotAtomByIdAction.hpp"
    7584#include "Actions/SelectionAction/NotMoleculeByIdAction.hpp"
     85#include "Actions/SelectionAction/NotMoleculeOfAtomAction.hpp"
    7686#include "Actions/TesselationAction/ConvexEnvelopeAction.hpp"
    7787#include "Actions/TesselationAction/NonConvexEnvelopeAction.hpp"
     
    8393#include "Actions/WorldAction/InputAction.hpp"
    8494#include "Actions/WorldAction/OutputAction.hpp"
    85 #include "Actions/WorldAction/RemoveSphereOfAtomsAction.hpp"
    8695#include "Actions/WorldAction/RepeatBoxAction.hpp"
    8796#include "Actions/WorldAction/ScaleBoxAction.hpp"
     
    184193  DescriptionMap["change-element"] = "change the element of an atom";
    185194  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";
    186197  DescriptionMap["convex-envelope"] = "create the convex envelope for a molecule";
    187198  DescriptionMap["default-molname"] = "set the default name of new molecules";
     
    202213  DescriptionMap["point-correlation"] = "pair correlation analysis between element and point";
    203214  DescriptionMap["principal-axis-system"] = "calculate the principal axis system of the specified molecule";
     215  DescriptionMap["redo"] = "redo last action";
    204216  DescriptionMap["remove-atom"] = "remove a specified atom";
    205   DescriptionMap["remove-sphere"] = "remove sphere of atoms of around a specified atom";
    206217  DescriptionMap["repeat-box"] = "create periodic copies of the simulation box per axis";
    207   DescriptionMap["rotate-origin"] = "rotates molecules by a specific angle around origin";
     218  DescriptionMap["rotate-origin"] = "rotate selected atoms by a specific angle around origin";
    208219  DescriptionMap["rotate-self"] = "rotates molecules by a specific angle around own center of gravity";
    209220  DescriptionMap["rotate-to-pas"] = "calculate the principal axis system of the specified molecule and rotate specified axis to align with main axis";
     
    216227  DescriptionMap["select-all-molecules"] = "select all molecules";
    217228  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";
    218231  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";
    219234  DescriptionMap["set-basis"] = "set the name of the gaussian basis set for MPQC";
    220235  DescriptionMap["set-output"] = "specify output formats";
     
    222237  DescriptionMap["surface-correlation"] = "pair correlation analysis between element and surface";
    223238  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";
    225241  DescriptionMap["unselect-all-atoms"] = "unselect all atoms";
    226242  DescriptionMap["unselect-all-molecules"] = "unselect all molecules";
    227243  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";
    228246  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";
    229249  DescriptionMap["verbose"] = "set verbosity level";
    230250  DescriptionMap["verlet-integrate"] = "perform verlet integration of a given force file";
     
    279299  ShortFormMap["parse-xyz"] = "p";
    280300  ShortFormMap["remove-atom"] = "r";
    281   ShortFormMap["remove-sphere"] = "R";
    282301  ShortFormMap["repeat-box"] = "d";
    283302  ShortFormMap["rotate-to-pas"] = "m";
     
    290309  ShortFormMap["subgraph-dissect"] = "I";
    291310  ShortFormMap["suspend-in-water"] = "u";
    292   ShortFormMap["translate-mol"] = "t";
     311  ShortFormMap["translate-atoms"] = "t";
    293312  ShortFormMap["verbose"] = "v";
    294313  ShortFormMap["verlet-integrate"] = "P";
     
    304323  TypeMap["change-element"] = &typeid(const element);
    305324  TypeMap["change-molname"] = &typeid(std::string);
     325  TypeMap["clear-atom-selection"] = &typeid(void);
     326  TypeMap["clear-molecule-selection"] = &typeid(void);
    306327  TypeMap["convex-envelope"] = &typeid(void);
    307328  TypeMap["default-molname"] = &typeid(std::string);
     
    320341  TypeMap["point-correlation"] = &typeid(void);
    321342  TypeMap["principal-axis-system"] = &typeid(void);
     343  TypeMap["redo"] = &typeid(void);
    322344  TypeMap["remove-atom"] = &typeid(void);
    323   TypeMap["remove-sphere"] = &typeid(double);
    324345  TypeMap["repeat-box"] = &typeid(VectorValue);
    325346  TypeMap["rotate-origin"] = &typeid(double);
     
    330351  TypeMap["save-temperature"] = &typeid(std::string);
    331352  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);
    332361  TypeMap["set-basis"] = &typeid(std::string);
    333362  TypeMap["set-output"] = &typeid(std::vector<std::string>);
     
    335364  TypeMap["surface-correlation"] = &typeid(void);
    336365  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);
    338376  TypeMap["verlet-integrate"] = &typeid(std::string);
    339377  TypeMap["verbose"] = &typeid(int);
     
    361399  TypeMap["periodic"] = &typeid(bool);
    362400  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);
    367401  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);
    372402
    373403  TypeEnumMap[&typeid(void)] = None;
     
    414444  MenuContainsActionMap.insert( pair<std::string, std::string> ("atom", "change-element") );
    415445  MenuContainsActionMap.insert( pair<std::string, std::string> ("atom", "remove-atom") );
     446  MenuContainsActionMap.insert( pair<std::string, std::string> ("atom", "translate-atoms") );
    416447
    417448  MenuContainsActionMap.insert( pair<std::string, std::string> ("command", "bond-table") );
     
    436467  MenuContainsActionMap.insert( pair<std::string, std::string> ("molecule", "save-temperature") );
    437468  MenuContainsActionMap.insert( pair<std::string, std::string> ("molecule", "suspend-in-water") );
    438   MenuContainsActionMap.insert( pair<std::string, std::string> ("molecule", "translate-mol") );
    439469  MenuContainsActionMap.insert( pair<std::string, std::string> ("molecule", "verlet-integrate") );
    440470
     
    442472  MenuContainsActionMap.insert( pair<std::string, std::string> ("parser", "SaveXyz") );
    443473
     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") );
    444478  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") );
    445481  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") );
    446486  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") );
    447489  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") );
    448492
    449493  MenuContainsActionMap.insert( pair<std::string, std::string> ("tesselation", "convex-envelope") );
     
    457501  MenuContainsActionMap.insert( pair<std::string, std::string> ("world", "input") );
    458502  MenuContainsActionMap.insert( pair<std::string, std::string> ("world", "output") );
    459   MenuContainsActionMap.insert( pair<std::string, std::string> ("world", "remove-sphere") );
    460503  MenuContainsActionMap.insert( pair<std::string, std::string> ("world", "repeat-box") );
    461504  MenuContainsActionMap.insert( pair<std::string, std::string> ("world", "scale-box") );
     
    474517        generic.insert("change-box");
    475518//  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");
    477522  generic.insert("convex-envelope");
    478523        generic.insert("default-molname");
     
    492537  generic.insert("point-correlation");
    493538//  generic.insert("principal-axis-system");
     539  generic.insert("redo");
    494540  generic.insert("remove-atom");
    495   generic.insert("remove-sphere");
    496541  generic.insert("repeat-box");
    497542  generic.insert("rotate-origin");
     
    505550  generic.insert("select-all-molecules");
    506551  generic.insert("select-atom-by-id");
     552  generic.insert("select-atoms-inside-cuboid");
     553  generic.insert("select-atoms-inside-sphere");
    507554  generic.insert("select-molecule-by-id");
     555  generic.insert("select-molecule-of-atom");
     556  generic.insert("select-molecules-atoms");
    508557  generic.insert("set-basis");
    509558  generic.insert("set-output");
     
    511560  generic.insert("surface-correlation");
    512561  generic.insert("suspend-in-water");
    513   generic.insert("translate-mol");
     562  generic.insert("translate-atoms");
     563  generic.insert("undo");
    514564  generic.insert("unselect-all-atoms");
    515565  generic.insert("unselect-all-molecules");
    516566  generic.insert("unselect-atom-by-id");
     567  generic.insert("unselect-atoms-inside-cuboid");
     568  generic.insert("unselect-atoms-inside-sphere");
    517569  generic.insert("unselect-molecule-by-id");
     570  generic.insert("unselect-molecule-of-atom");
     571  generic.insert("unselect-molecules-atoms");
    518572        generic.insert("verbose");
    519573  generic.insert("verlet-integrate");
     
    801855  new AtomChangeElementAction();
    802856  new AtomRemoveAction();
     857  new AtomRotateAroundOriginByAngleAction();
     858  new AtomTranslateAction();
    803859
    804860  new CommandLineBondLengthTableAction();
     
    817873  new MoleculeFillWithMoleculeAction();
    818874  new MoleculeLinearInterpolationofTrajectoriesAction();
    819   new MoleculeRotateAroundOriginByAngleAction();
    820875  new MoleculeRotateAroundSelfByAngleAction();
    821876  new MoleculeRotateToPrincipalAxisSystemAction();
     
    824879  new MoleculeSaveTemperatureAction();
    825880  new MoleculeSuspendInWaterAction();
    826   new MoleculeTranslateAction();
    827881  new MoleculeVerletIntegrationAction();
    828882
     
    830884  new ParserSaveXyzAction();
    831885
     886  new SelectionClearAllAtomsAction();
     887  new SelectionClearAllMoleculesAction();
    832888  new SelectionAllAtomsAction();
     889  new SelectionAllAtomsInsideCuboidAction();
     890  new SelectionAllAtomsInsideSphereAction();
     891  new SelectionAllAtomsOfMoleculeAction();
    833892  new SelectionAllMoleculesAction();
    834893  new SelectionAtomByIdAction();
    835894  new SelectionMoleculeByIdAction();
     895  new SelectionMoleculeOfAtomAction();
    836896  new SelectionNotAllAtomsAction();
     897  new SelectionNotAllAtomsInsideCuboidAction();
     898  new SelectionNotAllAtomsInsideSphereAction();
     899  new SelectionNotAllAtomsOfMoleculeAction();
    837900  new SelectionNotAllMoleculesAction();
    838901  new SelectionNotAtomByIdAction();
    839902  new SelectionNotMoleculeByIdAction();
     903  new SelectionNotMoleculeOfAtomAction();
    840904
    841905  new TesselationConvexEnvelopeAction();
     
    849913  new WorldInputAction();
    850914  new WorldOutputAction();
    851   new WorldRemoveSphereOfAtomsAction();
    852915  new WorldRepeatBoxAction();
    853916  new WorldScaleBoxAction();
Note: See TracChangeset for help on using the changeset viewer.