Ignore:
Timestamp:
Aug 9, 2010, 5:57:50 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:
353e82
Parents:
7a7ad1
git-author:
Frederik Heber <heber@…> (08/09/10 17:11:50)
git-committer:
Frederik Heber <heber@…> (08/09/10 17:57:50)
Message:

Added select-atoms-inside-sphere/cuboid and unselect-..

  • new selections to (un)select atoms inside a BasicShape Sphere or Cuboid.
  • BUGFIX: (Not)AllAtomsInsideCuboid did not query for Vector but double.
  • TEST: Simple_configuration/8
    • does not use RemoveSphereOfAtoms anymore
    • uses select-atoms-inside-...
    • checks both sphere and cuboid, invert and normal removel
    • also checks recombination of both to yield original configuration.
  • deleted RemoveSphereOfAtomsAction.[ch]pp
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/MapOfActions.cpp

    r7a7ad1 r1cc87e  
    6767#include "Actions/ParserAction/SaveXyzAction.hpp"
    6868#include "Actions/SelectionAction/AllAtomsAction.hpp"
     69#include "Actions/SelectionAction/AllAtomsInsideCuboidAction.hpp"
     70#include "Actions/SelectionAction/AllAtomsInsideSphereAction.hpp"
    6971#include "Actions/SelectionAction/AllAtomsOfMoleculeAction.hpp"
    7072#include "Actions/SelectionAction/AllMoleculesAction.hpp"
     
    7577#include "Actions/SelectionAction/MoleculeOfAtomAction.hpp"
    7678#include "Actions/SelectionAction/NotAllAtomsAction.hpp"
     79#include "Actions/SelectionAction/NotAllAtomsInsideCuboidAction.hpp"
     80#include "Actions/SelectionAction/NotAllAtomsInsideSphereAction.hpp"
    7781#include "Actions/SelectionAction/NotAllAtomsOfMoleculeAction.hpp"
    7882#include "Actions/SelectionAction/NotAllMoleculesAction.hpp"
     
    8993#include "Actions/WorldAction/InputAction.hpp"
    9094#include "Actions/WorldAction/OutputAction.hpp"
    91 #include "Actions/WorldAction/RemoveSphereOfAtomsAction.hpp"
    9295#include "Actions/WorldAction/RepeatBoxAction.hpp"
    9396#include "Actions/WorldAction/ScaleBoxAction.hpp"
     
    212215  DescriptionMap["redo"] = "redo last action";
    213216  DescriptionMap["remove-atom"] = "remove a specified atom";
    214   DescriptionMap["remove-sphere"] = "remove sphere of atoms of around a specified atom";
    215217  DescriptionMap["repeat-box"] = "create periodic copies of the simulation box per axis";
    216218  DescriptionMap["rotate-origin"] = "rotate selected atoms by a specific angle around origin";
     
    225227  DescriptionMap["select-all-molecules"] = "select all molecules";
    226228  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";
    227231  DescriptionMap["select-molecule-by-id"] = "select a molecule by index";
    228232  DescriptionMap["select-molecule-of-atom"] = "select a molecule to which a given atom belongs";
     
    238242  DescriptionMap["unselect-all-molecules"] = "unselect all molecules";
    239243  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";
    240246  DescriptionMap["unselect-molecule-by-id"] = "unselect a molecule by index";
    241247  DescriptionMap["unselect-molecule-of-atom"] = "unselect a molecule to which a given atom belongs";
     
    293299  ShortFormMap["parse-xyz"] = "p";
    294300  ShortFormMap["remove-atom"] = "r";
    295   ShortFormMap["remove-sphere"] = "R";
    296301  ShortFormMap["repeat-box"] = "d";
    297302  ShortFormMap["rotate-to-pas"] = "m";
     
    338343  TypeMap["redo"] = &typeid(void);
    339344  TypeMap["remove-atom"] = &typeid(void);
    340   TypeMap["remove-sphere"] = &typeid(double);
    341345  TypeMap["repeat-box"] = &typeid(VectorValue);
    342346  TypeMap["rotate-origin"] = &typeid(double);
     
    350354  TypeMap["select-all-molecules"] = &typeid(void);
    351355  TypeMap["select-atom-by-id"] = &typeid(atom);
     356  TypeMap["select-atoms-inside-cuboid"] = &typeid(VectorValue);
     357  TypeMap["select-atoms-inside-sphere"] = &typeid(double);
    352358  TypeMap["select-molecule-by-id"] = &typeid(molecule);
    353359  TypeMap["select-molecule-of-atom"] = &typeid(atom);
     
    363369  TypeMap["unselect-all-molecules"] = &typeid(void);
    364370  TypeMap["unselect-atom-by-id"] = &typeid(atom);
     371  TypeMap["unselect-atoms-inside-cuboid"] = &typeid(VectorValue);
     372  TypeMap["unselect-atoms-inside-sphere"] = &typeid(double);
    365373  TypeMap["unselect-molecule-by-id"] = &typeid(molecule);
    366374  TypeMap["unselect-molecule-of-atom"] = &typeid(atom);
     
    469477  MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-all-molecules") );
    470478  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") );
    471481  MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-molecule-by-id") );
    472482  MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-molecule-of-atom") );
     
    475485  MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-all-molecules") );
    476486  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") );
    477489  MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-molecule-by-id") );
    478490  MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-molecule-of-atom") );
     
    489501  MenuContainsActionMap.insert( pair<std::string, std::string> ("world", "input") );
    490502  MenuContainsActionMap.insert( pair<std::string, std::string> ("world", "output") );
    491   MenuContainsActionMap.insert( pair<std::string, std::string> ("world", "remove-sphere") );
    492503  MenuContainsActionMap.insert( pair<std::string, std::string> ("world", "repeat-box") );
    493504  MenuContainsActionMap.insert( pair<std::string, std::string> ("world", "scale-box") );
     
    528539  generic.insert("redo");
    529540  generic.insert("remove-atom");
    530   generic.insert("remove-sphere");
    531541  generic.insert("repeat-box");
    532542  generic.insert("rotate-origin");
     
    540550  generic.insert("select-all-molecules");
    541551  generic.insert("select-atom-by-id");
     552  generic.insert("select-atoms-inside-cuboid");
     553  generic.insert("select-atoms-inside-sphere");
    542554  generic.insert("select-molecule-by-id");
    543555  generic.insert("select-molecule-of-atom");
     
    553565  generic.insert("unselect-all-molecules");
    554566  generic.insert("unselect-atom-by-id");
     567  generic.insert("unselect-atoms-inside-cuboid");
     568  generic.insert("unselect-atoms-inside-sphere");
    555569  generic.insert("unselect-molecule-by-id");
    556570  generic.insert("unselect-molecule-of-atom");
     
    873887  new SelectionClearAllMoleculesAction();
    874888  new SelectionAllAtomsAction();
     889  new SelectionAllAtomsInsideCuboidAction();
     890  new SelectionAllAtomsInsideSphereAction();
    875891  new SelectionAllAtomsOfMoleculeAction();
    876892  new SelectionAllMoleculesAction();
     
    879895  new SelectionMoleculeOfAtomAction();
    880896  new SelectionNotAllAtomsAction();
     897  new SelectionNotAllAtomsInsideCuboidAction();
     898  new SelectionNotAllAtomsInsideSphereAction();
    881899  new SelectionNotAllAtomsOfMoleculeAction();
    882900  new SelectionNotAllMoleculesAction();
     
    895913  new WorldInputAction();
    896914  new WorldOutputAction();
    897   new WorldRemoveSphereOfAtomsAction();
    898915  new WorldRepeatBoxAction();
    899916  new WorldScaleBoxAction();
Note: See TracChangeset for help on using the changeset viewer.