- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/Actions/SelectionAction/Atoms/NotAllAtomsInsideSphereAction.cpp ¶
rd927ab r0aa122 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 sByShape(s));52 World::getInstance().unselectAllAtoms(Atom sByShape(s));51 std::vector<atom *> unselectedAtoms = World::getInstance().getAllAtoms((!AtomsBySelection()) && AtomByShape(s)); 52 World::getInstance().unselectAllAtoms(AtomByShape(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 sByShape(state->s));60 World::getInstance().selectAllAtoms(AtomByShape(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 sByShape(state->s));70 World::getInstance().unselectAllAtoms(AtomByShape(state->s)); 71 71 72 72 return Action::state_ptr(_state);
Note:
See TracChangeset
for help on using the changeset viewer.