|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
27 #ifndef TOOLS_ATOMITERATOR_H
28 #define TOOLS_ATOMITERATOR_H
63 std::vector<Atom*>
atoms;
69 #endif // TOOLS_ATOMITERATOR_H
unsigned int getNumberOfStructures() const
get the number of structures
Definition: StructuralComponent.h:252
An atom has an unique index in the physical model object, a 3D position, and different basic properti...
Definition: Atom.h:49
Atom * getAtom(const unsigned int id)
Get the atom that has the global index given in parameters.
Definition: PhysicalModel.h:385
A structural component is composed either by cell or by atoms.
Definition: StructuralComponent.h:52
AtomIterator(PhysicalModel *pml, std::string targetList)
constructor
Definition: AtomIterator.cpp:29
~AtomIterator()=default
destructor
This is the main class of this project. Following a nice concept, a physical model is able to represe...
Definition: PhysicalModel.h:86
void operator++()
redefinition of ++ operator, advance iterator to next atom
Definition: AtomIterator.cpp:84
A cell has an unique index in the physical model object, is composed by atoms, and different basic pr...
Definition: Cell.h:46
Component * getComponentByName(const std::string n)
get a structural or multi component by its name.
Definition: PhysicalModel.cpp:553
int getIndexedTarget(const unsigned int) const
get an indexed target
Definition: TargetList.cpp:142
void next()
if iteration is not finished, advance to next atom
Definition: AtomIterator.cpp:72
bool indexedTargets() const
return true only if the list of target are indexes
Definition: TargetList.cpp:265
Structure * getStructure(const unsigned int) const
get a structure by its index (fisrt structure is at index 0)
Definition: StructuralComponent.h:220
Atom * currentAtom()
return current atom
Definition: AtomIterator.cpp:79
std::vector< Atom * > atoms
atoms list
Definition: AtomIterator.h:86
bool end()
return true if iterator is over the last atom
Definition: AtomIterator.cpp:67
Allow iteration over a set of atoms given by a target list (component name or index list)
Definition: AtomIterator.h:40
unsigned int index
current atom index
Definition: AtomIterator.h:88
unsigned int getNumberOfTargets() const
get the nr of indevidual targets
Definition: TargetList.cpp:132
void begin()
place iterator on first atom
Definition: AtomIterator.cpp:62
std::string getNamedTarget(const unsigned int) const
get a named target
Definition: TargetList.cpp:152
Manage a list of targets, can be created/modified using either an integer, a name,...
Definition: TargetList.h:45