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