- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/SelectionAction/Atoms/AtomByElementAction.cpp
rbe21fa rf10b0c 41 41 /** =========== define the function ====================== */ 42 42 Action::state_ptr SelectionAtomByElementAction::performCall() { 43 LOG(1, "Selecting atoms of type " << *params.elemental );43 LOG(1, "Selecting atoms of type " << *params.elemental.get()); 44 44 std::vector<atom *> selectedAtoms = World::getInstance().getAllAtoms(AtomsBySelection()); 45 World::getInstance().selectAllAtoms(AtomByType(params.elemental ));45 World::getInstance().selectAllAtoms(AtomByType(params.elemental.get())); 46 46 LOG(0, World::getInstance().countSelectedAtoms() << " atoms selected."); 47 47 return Action::state_ptr(new SelectionAtomByElementState(selectedAtoms,params)); … … 51 51 SelectionAtomByElementState *state = assert_cast<SelectionAtomByElementState*>(_state.get()); 52 52 53 World::getInstance().unselectAllAtoms(AtomByType(state->params.elemental ));53 World::getInstance().unselectAllAtoms(AtomByType(state->params.elemental.get())); 54 54 BOOST_FOREACH(atom *_atom, state->selectedAtoms) 55 55 World::getInstance().selectAtom(_atom); … … 61 61 SelectionAtomByElementState *state = assert_cast<SelectionAtomByElementState*>(_state.get()); 62 62 63 World::getInstance().selectAllAtoms(AtomByType(state->params.elemental ));63 World::getInstance().selectAllAtoms(AtomByType(state->params.elemental.get())); 64 64 65 65 return Action::state_ptr(_state);
Note:
See TracChangeset
for help on using the changeset viewer.