Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/Actions/SelectionAction/Atoms/NotAllAtomsInsideSphereAction.cpp

    rd927ab r0aa122  
    4949  LOG(1, "Unselecting all atoms inside a sphere at " << params.position << " with radius " << params.radius << ".");
    5050  Shape s = translate(resize(Sphere(),params.radius),params.position);
    51   std::vector<atom *> unselectedAtoms = World::getInstance().getAllAtoms((!AtomsBySelection()) && AtomsByShape(s));
    52   World::getInstance().unselectAllAtoms(AtomsByShape(s));
     51  std::vector<atom *> unselectedAtoms = World::getInstance().getAllAtoms((!AtomsBySelection()) && AtomByShape(s));
     52  World::getInstance().unselectAllAtoms(AtomByShape(s));
    5353  LOG(0, World::getInstance().countSelectedAtoms() << " atoms remain selected.");
    5454  return Action::state_ptr(new SelectionNotAllAtomsInsideSphereState(unselectedAtoms, s, params));
     
    5858  SelectionNotAllAtomsInsideSphereState *state = assert_cast<SelectionNotAllAtomsInsideSphereState*>(_state.get());
    5959
    60   World::getInstance().selectAllAtoms(AtomsByShape(state->s));
     60  World::getInstance().selectAllAtoms(AtomByShape(state->s));
    6161  BOOST_FOREACH(atom *_atom, state->unselectedAtoms)
    6262    World::getInstance().unselectAtom(_atom);
     
    6868  SelectionNotAllAtomsInsideSphereState *state = assert_cast<SelectionNotAllAtomsInsideSphereState*>(_state.get());
    6969
    70   World::getInstance().unselectAllAtoms(AtomsByShape(state->s));
     70  World::getInstance().unselectAllAtoms(AtomByShape(state->s));
    7171
    7272  return Action::state_ptr(_state);
Note: See TracChangeset for help on using the changeset viewer.