- Timestamp:
- Dec 16, 2010, 5:32:23 PM (14 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:
- 1a0987
- Parents:
- fc5c3a
- git-author:
- Frederik Heber <heber@…> (12/11/10 21:05:11)
- git-committer:
- Frederik Heber <heber@…> (12/16/10 17:32:23)
- Location:
- src
- Files:
-
- 6 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/SelectionAction/Atoms/AllAtomsOfMoleculeAction.cpp
rfc5c3a rc42e60 21 21 22 22 #include "Descriptors/AtomSelectionDescriptor.hpp" 23 #include "Descriptors/AtomOfMoleculeSelectionDescriptor.hpp" 23 24 #include "atom.hpp" 24 25 #include "molecule.hpp" … … 43 44 getParametersfromValueStorage(); 44 45 45 DoLog(1) && (Log() << Verbose(1) << "Selecting all atoms of molecule " << params.mol->getName() << "." << endl);46 DoLog(1) && (Log() << Verbose(1) << "Selecting all atoms of currently selected molecule." << endl); 46 47 std::vector<atom *> selectedAtoms = World::getInstance().getAllAtoms(AtomsBySelection()); 47 World::getInstance().selectA tomsOfMolecule(params.mol);48 World::getInstance().selectAllAtoms(AtomsByMoleculeSelection()); 48 49 return Action::state_ptr(new SelectionAllAtomsOfMoleculeState(selectedAtoms, params)); 49 50 } … … 52 53 SelectionAllAtomsOfMoleculeState *state = assert_cast<SelectionAllAtomsOfMoleculeState*>(_state.get()); 53 54 54 World::getInstance(). unselectAtomsOfMolecule(state->params.mol);55 World::getInstance().clearAtomSelection(); 55 56 BOOST_FOREACH(atom *_atom, state->selectedAtoms) 56 57 World::getInstance().selectAtom(_atom); … … 62 63 SelectionAllAtomsOfMoleculeState *state = assert_cast<SelectionAllAtomsOfMoleculeState*>(_state.get()); 63 64 64 World::getInstance().selectA tomsOfMolecule(state->params.mol);65 World::getInstance().selectAllAtoms(AtomsByMoleculeSelection()); 65 66 66 67 return Action::state_ptr(_state); -
src/Actions/SelectionAction/Atoms/AllAtomsOfMoleculeAction.def
rfc5c3a rc42e60 12 12 // ValueStorage by the token "Z" -> first column: int, Z, "Z" 13 13 // "undefine" if no parameters are required, use (NODEFAULT) for each (undefined) default value 14 # define paramtypes (const molecule *)15 # define paramtokens ("select-molecules-atoms")16 # define paramdescriptions ("molecule to select")14 #undef paramtypes 15 #undef paramtokens 16 #undef paramdescriptions 17 17 #undef paramdefaults 18 # define paramreferences (mol)18 #undef paramreferences 19 19 20 20 #define statetypes (std::vector<atom*>) … … 30 30 31 31 // finally the information stored in the ActionTrait specialization 32 #define DESCRIPTION "select all atoms of a molecule"32 #define DESCRIPTION "select all atoms of currently selected molecules" 33 33 #undef SHORTFORM -
src/Actions/SelectionAction/Atoms/NotAllAtomsOfMoleculeAction.cpp
rfc5c3a rc42e60 21 21 22 22 #include "Descriptors/AtomSelectionDescriptor.hpp" 23 #include "Descriptors/AtomOfMoleculeSelectionDescriptor.hpp" 23 24 #include "atom.hpp" 24 25 #include "molecule.hpp" … … 43 44 getParametersfromValueStorage(); 44 45 45 DoLog(1) && (Log() << Verbose(1) << "Unselecting all atoms of molecule " << params.mol->getName() << "." << endl);46 DoLog(1) && (Log() << Verbose(1) << "Unselecting all atoms of currently selected molecules." << endl); 46 47 std::vector<atom *> unselectedAtoms = World::getInstance().getAllAtoms(!AtomsBySelection()); 47 World::getInstance().unselectA tomsOfMolecule(params.mol);48 World::getInstance().unselectAllAtoms(AtomsByMoleculeSelection()); 48 49 return Action::state_ptr(new SelectionNotAllAtomsOfMoleculeState(unselectedAtoms, params)); 49 50 } … … 52 53 SelectionNotAllAtomsOfMoleculeState *state = assert_cast<SelectionNotAllAtomsOfMoleculeState*>(_state.get()); 53 54 54 World::getInstance().selectA tomsOfMolecule(state->params.mol);55 World::getInstance().selectAllAtoms(AllAtoms()); 55 56 BOOST_FOREACH(atom *_atom, state->unselectedAtoms) 56 57 World::getInstance().unselectAtom(_atom); … … 60 61 61 62 Action::state_ptr SelectionNotAllAtomsOfMoleculeAction::performRedo(Action::state_ptr _state){ 62 SelectionNotAllAtomsOfMoleculeState *state = assert_cast<SelectionNotAllAtomsOfMoleculeState*>(_state.get());63 //SelectionNotAllAtomsOfMoleculeState *state = assert_cast<SelectionNotAllAtomsOfMoleculeState*>(_state.get()); 63 64 64 World::getInstance().unselectA tomsOfMolecule(state->params.mol);65 World::getInstance().unselectAllAtoms(AtomsByMoleculeSelection()); 65 66 66 67 return Action::state_ptr(_state); -
src/Actions/SelectionAction/Atoms/NotAllAtomsOfMoleculeAction.def
rfc5c3a rc42e60 12 12 // ValueStorage by the token "Z" -> first column: int, Z, "Z" 13 13 // "undefine" if no parameters are required, use (NODEFAULT) for each (undefined) default value 14 # define paramtypes (const molecule*)15 # define paramtokens ("unselect-molecules-atoms")16 # define paramdescriptions ("molecule")14 #undef paramtypes 15 #undef paramtokens 16 #undef paramdescriptions 17 17 #undef paramdefaults 18 # define paramreferences (mol)18 #undef paramreferences 19 19 20 20 #define statetypes (std::vector<atom*>) … … 30 30 31 31 // finally the information stored in the ActionTrait specialization 32 #define DESCRIPTION "unselect all atoms of a molecule"32 #define DESCRIPTION "unselect all atoms of currently selected molecules" 33 33 #undef SHORTFORM -
src/Actions/SelectionAction/Molecules/MoleculeOfAtomAction.cpp
rfc5c3a rc42e60 21 21 22 22 #include "Descriptors/MoleculeDescriptor.hpp" 23 #include " atom.hpp"23 #include "Descriptors/MoleculeOfAtomSelectionDescriptor.hpp" 24 24 #include "Helpers/Log.hpp" 25 25 #include "Helpers/Verbose.hpp" … … 43 43 44 44 std::vector<molecule *> selectedMolecules = World::getInstance().getSelectedMolecules(); 45 DoLog(1) && (Log() << Verbose(1) << "Selecting molecule to which " << params.Walker->getName() << " belongs." << endl);46 World::getInstance().select MoleculeOfAtom(params.Walker);45 DoLog(1) && (Log() << Verbose(1) << "Selecting molecule to currently selected atoms." << endl); 46 World::getInstance().selectAllMolecules(MoleculesByAtomSelection()); 47 47 return Action::state_ptr(new SelectionMoleculeOfAtomState(selectedMolecules, params)); 48 48 } … … 59 59 60 60 Action::state_ptr SelectionMoleculeOfAtomAction::performRedo(Action::state_ptr _state){ 61 SelectionMoleculeOfAtomState *state = assert_cast<SelectionMoleculeOfAtomState*>(_state.get());61 //SelectionMoleculeOfAtomState *state = assert_cast<SelectionMoleculeOfAtomState*>(_state.get()); 62 62 63 World::getInstance().select MoleculeOfAtom(state->params.Walker);63 World::getInstance().selectAllMolecules(MoleculesByAtomSelection()); 64 64 65 65 return Action::state_ptr(_state); -
src/Actions/SelectionAction/Molecules/MoleculeOfAtomAction.def
rfc5c3a rc42e60 11 11 // ValueStorage by the token "Z" -> first column: int, Z, "Z" 12 12 // "undefine" if no parameters are required, use (NODEFAULT) for each (undefined) default value 13 # define paramtypes (const atom*)14 # define paramtokens ("select-molecule-of-atom")15 # define paramdescriptions ("one atom of desired molecule")13 #undef paramtypes 14 #undef paramtokens 15 #undef paramdescriptions 16 16 #undef paramdefaults 17 # define paramreferences (Walker)17 #undef paramreferences 18 18 19 19 #define statetypes (std::vector<molecule*>) … … 25 25 #define MENUPOSITION 11 26 26 #define ACTIONNAME MoleculeOfAtom 27 #define TOKEN "select- molecule-of-atom"27 #define TOKEN "select-atoms-molecules" 28 28 29 29 30 30 // finally the information stored in the ActionTrait specialization 31 #define DESCRIPTION "select a molecule to which a given atom belongs"31 #define DESCRIPTION "select all molecules of currently selected atoms" 32 32 #undef SHORTFORM -
src/Actions/SelectionAction/Molecules/NotMoleculeOfAtomAction.cpp
rfc5c3a rc42e60 21 21 22 22 #include "Descriptors/MoleculeDescriptor.hpp" 23 #include " atom.hpp"23 #include "Descriptors/MoleculeOfAtomSelectionDescriptor.hpp" 24 24 #include "Helpers/Log.hpp" 25 25 #include "Helpers/Verbose.hpp" … … 43 43 44 44 std::vector<molecule *> unselectedMolecules = World::getInstance().getSelectedMolecules(); 45 DoLog(1) && (Log() << Verbose(1) << "Unselecting molecule to which " << params.Walker->getName() << " belongs." << endl);46 World::getInstance().unselect MoleculeOfAtom(params.Walker);45 DoLog(1) && (Log() << Verbose(1) << "Unselecting molecule to currently selected atoms." << endl); 46 World::getInstance().unselectAllMolecules(MoleculesByAtomSelection()); 47 47 return Action::state_ptr(new SelectionNotMoleculeOfAtomState(unselectedMolecules, params)); 48 48 } … … 59 59 60 60 Action::state_ptr SelectionNotMoleculeOfAtomAction::performRedo(Action::state_ptr _state){ 61 SelectionNotMoleculeOfAtomState *state = assert_cast<SelectionNotMoleculeOfAtomState*>(_state.get());61 //SelectionNotMoleculeOfAtomState *state = assert_cast<SelectionNotMoleculeOfAtomState*>(_state.get()); 62 62 63 World::getInstance().unselect MoleculeOfAtom(state->params.Walker);63 World::getInstance().unselectAllMolecules(MoleculesByAtomSelection()); 64 64 65 65 return Action::state_ptr(_state); -
src/Actions/SelectionAction/Molecules/NotMoleculeOfAtomAction.def
rfc5c3a rc42e60 11 11 // ValueStorage by the token "Z" -> first column: int, Z, "Z" 12 12 // "undefine" if no parameters are required, use (NODEFAULT) for each (undefined) default value 13 # define paramtypes (const atom*)14 # define paramtokens ("unselect-molecule-of-atom")15 # define paramdescriptions ("one atom of desired molecule")13 #undef paramtypes 14 #undef paramtokens 15 #undef paramdescriptions 16 16 #undef paramdefaults 17 # define paramreferences (Walker)17 #undef paramreferences 18 18 19 19 #define statetypes (std::vector<molecule*>) … … 25 25 #define MENUPOSITION 21 26 26 #define ACTIONNAME NotMoleculeOfAtom 27 #define TOKEN "unselect- molecule-of-atom"27 #define TOKEN "unselect-atoms-molecules" 28 28 29 29 30 30 // finally the information stored in the ActionTrait specialization 31 #define DESCRIPTION "unselect a molecule to which a given atom belongs"31 #define DESCRIPTION "unselect all molecules of currently selected atoms" 32 32 #undef SHORTFORM -
src/Makefile.am
rfc5c3a rc42e60 84 84 85 85 86 DESCRIPTORSOURCE = Descriptors/AtomDescriptor.cpp \ 86 DESCRIPTORSOURCE = \ 87 Descriptors/AtomDescriptor.cpp \ 87 88 Descriptors/AtomIdDescriptor.cpp \ 89 Descriptors/AtomOfMoleculeSelectionDescriptor.cpp \ 88 90 Descriptors/AtomSelectionDescriptor.cpp \ 89 91 Descriptors/AtomShapeDescriptor.cpp \ … … 93 95 Descriptors/MoleculeIdDescriptor.cpp \ 94 96 Descriptors/MoleculeNameDescriptor.cpp \ 97 Descriptors/MoleculeOfAtomSelectionDescriptor.cpp \ 95 98 Descriptors/MoleculeOrderDescriptor.cpp \ 96 99 Descriptors/MoleculePtrDescriptor.cpp \ … … 98 101 99 102 100 DESCRIPTORHEADER = Descriptors/AtomDescriptor.hpp \ 103 DESCRIPTORHEADER = \ 104 Descriptors/AtomDescriptor.hpp \ 101 105 Descriptors/AtomIdDescriptor.hpp \ 106 Descriptors/AtomOfMoleculeSelectionDescriptor.hpp \ 102 107 Descriptors/AtomSelectionDescriptor.hpp \ 103 108 Descriptors/AtomShapeDescriptor.hpp \ … … 107 112 Descriptors/MoleculeIdDescriptor.hpp \ 108 113 Descriptors/MoleculeNameDescriptor.hpp \ 114 Descriptors/MoleculeOfAtomSelectionDescriptor.hpp \ 109 115 Descriptors/MoleculeOrderDescriptor.hpp \ 110 116 Descriptors/MoleculePtrDescriptor.hpp \ 111 Descriptors/MoleculeSelectionDescriptor.cpp 117 Descriptors/MoleculeSelectionDescriptor.hpp 118 119 DESCRIPTORIMPLHEADER = \ 120 Descriptors/AtomDescriptor_impl.hpp \ 121 Descriptors/AtomIdDescriptor_impl.hpp \ 122 Descriptors/AtomOfMoleculeSelectionDescriptor_impl.hpp \ 123 Descriptors/AtomSelectionDescriptor_impl.hpp \ 124 Descriptors/AtomShapeDescriptor_impl.hpp \ 125 Descriptors/AtomTypeDescriptor_impl.hpp \ 126 Descriptors/MoleculeDescriptor_impl.hpp \ 127 Descriptors/MoleculeFormulaDescriptor_impl.hpp \ 128 Descriptors/MoleculeIdDescriptor_impl.hpp \ 129 Descriptors/MoleculeNameDescriptor_impl.hpp \ 130 Descriptors/MoleculeOfAtomSelectionDescriptor_impl.hpp \ 131 Descriptors/MoleculeOrderDescriptor_impl.hpp \ 132 Descriptors/MoleculePtrDescriptor_impl.hpp \ 133 Descriptors/MoleculeSelectionDescriptor_impl.hpp 112 134 113 135 THERMOSTATSOURCE = \ … … 193 215 ${SHAPEHEADER} \ 194 216 ${DESCRIPTORHEADER} \ 217 ${DESCRIPTORIMPLHEADER} \ 195 218 ${THERMOSTATHEADER} \ 196 219 ${TESSELATIONHEADER} \
Note:
See TracChangeset
for help on using the changeset viewer.