- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/SelectionAction/Molecules/MoleculeByNameAction.cpp
rf10b0c rbe21fa 40 40 /** =========== define the function ====================== */ 41 41 Action::state_ptr SelectionMoleculeByNameAction::performCall() { 42 LOG(1, "Selecting all molecules called " << params.molname .get());42 LOG(1, "Selecting all molecules called " << params.molname); 43 43 std::vector<molecule *> selectedMolecules = 44 World::getInstance().getAllMolecules(MoleculesBySelection() && MoleculeByName(params.molname .get()));45 World::getInstance().selectAllMolecules(MoleculeByName(params.molname .get()));44 World::getInstance().getAllMolecules(MoleculesBySelection() && MoleculeByName(params.molname)); 45 World::getInstance().selectAllMolecules(MoleculeByName(params.molname)); 46 46 LOG(0, World::getInstance().countSelectedMolecules() << " molecules selected."); 47 47 … … 52 52 SelectionMoleculeByNameState *state = assert_cast<SelectionMoleculeByNameState*>(_state.get()); 53 53 54 World::getInstance().unselectAllMolecules(MoleculeByName(state->params.molname .get()));54 World::getInstance().unselectAllMolecules(MoleculeByName(state->params.molname)); 55 55 BOOST_FOREACH( molecule *mol, state->selectedMolecules) 56 56 World::getInstance().selectMolecule(mol); … … 62 62 SelectionMoleculeByNameState *state = assert_cast<SelectionMoleculeByNameState*>(_state.get()); 63 63 64 World::getInstance().selectAllMolecules(MoleculeByName(state->params.molname .get()));64 World::getInstance().selectAllMolecules(MoleculeByName(state->params.molname)); 65 65 66 66 return Action::state_ptr(_state);
Note:
See TracChangeset
for help on using the changeset viewer.