- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/SelectionAction/Atoms/AllAtomsInsideSphereAction.cpp
rbe21fa rf10b0c 44 44 /** =========== define the function ====================== */ 45 45 Action::state_ptr SelectionAllAtomsInsideSphereAction::performCall() { 46 LOG(1, "Selecting all atoms inside a sphere at " << params.position << " with radius " << params.radius<< ".");47 Shape s = translate(resize(Sphere(),params.radius ),params.position);46 LOG(1, "Selecting all atoms inside a sphere at " << params.position.get() << " with radius " << params.radius.get() << "."); 47 Shape s = translate(resize(Sphere(),params.radius.get()),params.position.get()); 48 48 std::vector<atom *> selectedAtoms = World::getInstance().getAllAtoms(AtomsBySelection() && AtomsByShape(s)); 49 49 World::getInstance().selectAllAtoms(AtomsByShape(s));
Note:
See TracChangeset
for help on using the changeset viewer.