- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/SelectionAction/Atoms/NotAllAtomsInsideSphereAction.cpp
r0aa122 rd927ab 49 49 LOG(1, "Unselecting all atoms inside a sphere at " << params.position << " with radius " << params.radius << "."); 50 50 Shape s = translate(resize(Sphere(),params.radius),params.position); 51 std::vector<atom *> unselectedAtoms = World::getInstance().getAllAtoms((!AtomsBySelection()) && Atom ByShape(s));52 World::getInstance().unselectAllAtoms(Atom ByShape(s));51 std::vector<atom *> unselectedAtoms = World::getInstance().getAllAtoms((!AtomsBySelection()) && AtomsByShape(s)); 52 World::getInstance().unselectAllAtoms(AtomsByShape(s)); 53 53 LOG(0, World::getInstance().countSelectedAtoms() << " atoms remain selected."); 54 54 return Action::state_ptr(new SelectionNotAllAtomsInsideSphereState(unselectedAtoms, s, params)); … … 58 58 SelectionNotAllAtomsInsideSphereState *state = assert_cast<SelectionNotAllAtomsInsideSphereState*>(_state.get()); 59 59 60 World::getInstance().selectAllAtoms(Atom ByShape(state->s));60 World::getInstance().selectAllAtoms(AtomsByShape(state->s)); 61 61 BOOST_FOREACH(atom *_atom, state->unselectedAtoms) 62 62 World::getInstance().unselectAtom(_atom); … … 68 68 SelectionNotAllAtomsInsideSphereState *state = assert_cast<SelectionNotAllAtomsInsideSphereState*>(_state.get()); 69 69 70 World::getInstance().unselectAllAtoms(Atom ByShape(state->s));70 World::getInstance().unselectAllAtoms(AtomsByShape(state->s)); 71 71 72 72 return Action::state_ptr(_state);
Note:
See TracChangeset
for help on using the changeset viewer.