Ignore:
Timestamp:
Aug 12, 2010, 3:08:47 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:
a7a087
Parents:
60896f
Message:

Added (un)select-molecule-by-formula/..-atom-by-element actions..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/MapOfActions.cpp

    r60896f r51769f  
    7676#include "Actions/SelectionAction/AllAtomsOfMoleculeAction.hpp"
    7777#include "Actions/SelectionAction/AllMoleculesAction.hpp"
     78#include "Actions/SelectionAction/AtomByElementAction.hpp"
    7879#include "Actions/SelectionAction/AtomByIdAction.hpp"
    7980#include "Actions/SelectionAction/ClearAllAtomsAction.hpp"
    8081#include "Actions/SelectionAction/ClearAllMoleculesAction.hpp"
     82#include "Actions/SelectionAction/MoleculeByFormulaAction.hpp"
    8183#include "Actions/SelectionAction/MoleculeByIdAction.hpp"
    8284#include "Actions/SelectionAction/MoleculeOfAtomAction.hpp"
     
    8688#include "Actions/SelectionAction/NotAllAtomsOfMoleculeAction.hpp"
    8789#include "Actions/SelectionAction/NotAllMoleculesAction.hpp"
     90#include "Actions/SelectionAction/NotAtomByElementAction.hpp"
    8891#include "Actions/SelectionAction/NotAtomByIdAction.hpp"
     92#include "Actions/SelectionAction/NotMoleculeByFormulaAction.hpp"
    8993#include "Actions/SelectionAction/NotMoleculeByIdAction.hpp"
    9094#include "Actions/SelectionAction/NotMoleculeOfAtomAction.hpp"
     
    231235  DescriptionMap["select-all-atoms"] = "select all atoms";
    232236  DescriptionMap["select-all-molecules"] = "select all molecules";
     237  DescriptionMap["select-atom-by-element"] = "select an atom by element";
    233238  DescriptionMap["select-atom-by-id"] = "select an atom by index";
    234239  DescriptionMap["select-atoms-inside-cuboid"] = "select all atoms inside a cuboid";
    235240  DescriptionMap["select-atoms-inside-sphere"] = "select all atoms inside a sphere";
    236241  DescriptionMap["select-molecule-by-id"] = "select a molecule by index";
     242  DescriptionMap["select-molecule-by-formula"] = "select a molecule by chemical formula";
    237243  DescriptionMap["select-molecule-of-atom"] = "select a molecule to which a given atom belongs";
    238244  DescriptionMap["select-molecules-atoms"] = "select all atoms of a molecule";
     
    246252  DescriptionMap["unselect-all-atoms"] = "unselect all atoms";
    247253  DescriptionMap["unselect-all-molecules"] = "unselect all molecules";
     254  DescriptionMap["unselect-atom-by-element"] = "unselect an atom by element";
    248255  DescriptionMap["unselect-atom-by-id"] = "unselect an atom by index";
    249256  DescriptionMap["unselect-atoms-inside-cuboid"] = "unselect all atoms inside a cuboid";
    250257  DescriptionMap["unselect-atoms-inside-sphere"] = "unselect all atoms inside a sphere";
     258  DescriptionMap["unselect-molecule-by-formula"] = "unselect a molecule by chemical formula";
    251259  DescriptionMap["unselect-molecule-by-id"] = "unselect a molecule by index";
    252260  DescriptionMap["unselect-molecule-of-atom"] = "unselect a molecule to which a given atom belongs";
     
    361369  TypeMap["select-all-atoms"] = &typeid(void);
    362370  TypeMap["select-all-molecules"] = &typeid(void);
     371  TypeMap["select-atom-by-element"] = &typeid(const element);
    363372  TypeMap["select-atom-by-id"] = &typeid(atom);
    364373  TypeMap["select-atoms-inside-cuboid"] = &typeid(VectorValue);
    365374  TypeMap["select-atoms-inside-sphere"] = &typeid(double);
     375  TypeMap["select-molecule-by-formula"] = &typeid(std::string);
    366376  TypeMap["select-molecule-by-id"] = &typeid(molecule);
    367377  TypeMap["select-molecule-of-atom"] = &typeid(atom);
     
    376386  TypeMap["unselect-all-atoms"] = &typeid(void);
    377387  TypeMap["unselect-all-molecules"] = &typeid(void);
     388  TypeMap["unselect-atom-by-element"] = &typeid(const element);
    378389  TypeMap["unselect-atom-by-id"] = &typeid(atom);
    379390  TypeMap["unselect-atoms-inside-cuboid"] = &typeid(VectorValue);
    380391  TypeMap["unselect-atoms-inside-sphere"] = &typeid(double);
     392  TypeMap["unselect-molecule-by-formula"] = &typeid(std::string);
    381393  TypeMap["unselect-molecule-by-id"] = &typeid(molecule);
    382394  TypeMap["unselect-molecule-of-atom"] = &typeid(atom);
     
    487499  MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-all-atoms") );
    488500  MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-all-molecules") );
     501  MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-atom-by-element") );
    489502  MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-atom-by-id") );
    490503  MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-atoms-inside-cuboid") );
    491504  MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-atoms-inside-sphere") );
    492505  MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-molecule-by-id") );
     506  MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-molecule-by-formula") );
    493507  MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-molecule-of-atom") );
    494508  MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-molecules-atoms") );
    495509  MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-all-atoms") );
    496510  MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-all-molecules") );
     511  MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-atom-by-element") );
    497512  MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-atom-by-id") );
    498513  MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-atoms-inside-cuboid") );
    499514  MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-atoms-inside-sphere") );
     515  MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-molecule-by-formula") );
    500516  MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-molecule-by-id") );
    501517  MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-molecule-of-atom") );
     
    560576  generic.insert("select-all-atoms");
    561577  generic.insert("select-all-molecules");
     578  generic.insert("select-atom-by-element");
    562579  generic.insert("select-atom-by-id");
    563580  generic.insert("select-atoms-inside-cuboid");
    564581  generic.insert("select-atoms-inside-sphere");
    565582  generic.insert("select-molecule-by-id");
     583  generic.insert("select-molecule-by-formula");
    566584  generic.insert("select-molecule-of-atom");
    567585  generic.insert("select-molecules-atoms");
     
    575593  generic.insert("unselect-all-atoms");
    576594  generic.insert("unselect-all-molecules");
     595  generic.insert("unselect-atom-by-element");
    577596  generic.insert("unselect-atom-by-id");
    578597  generic.insert("unselect-atoms-inside-cuboid");
    579598  generic.insert("unselect-atoms-inside-sphere");
     599  generic.insert("unselect-molecule-by-formula");
    580600  generic.insert("unselect-molecule-by-id");
    581601  generic.insert("unselect-molecule-of-atom");
     
    910930  new SelectionAllAtomsOfMoleculeAction();
    911931  new SelectionAllMoleculesAction();
     932  new SelectionAtomByElementAction();
    912933  new SelectionAtomByIdAction();
    913934  new SelectionMoleculeByIdAction();
     935  new SelectionMoleculeByFormulaAction();
    914936  new SelectionMoleculeOfAtomAction();
    915937  new SelectionNotAllAtomsAction();
     
    918940  new SelectionNotAllAtomsOfMoleculeAction();
    919941  new SelectionNotAllMoleculesAction();
     942  new SelectionNotAtomByElementAction();
    920943  new SelectionNotAtomByIdAction();
     944  new SelectionNotMoleculeByFormulaAction();
    921945  new SelectionNotMoleculeByIdAction();
    922946  new SelectionNotMoleculeOfAtomAction();
Note: See TracChangeset for help on using the changeset viewer.