Computer Assisted Medical Intervention Tool Kit  version 5.2
 
Loading...
Searching...
No Matches
AtomIterator Class Reference

Allow iteration over a set of atoms given by a target list (component name or index list) More...

#include <AtomIterator.h>

+ Collaboration diagram for AtomIterator:

Public Member Functions

 AtomIterator (PhysicalModel *pml, std::string targetList)
 constructor
 
void begin ()
 place iterator on first atom
 
AtomcurrentAtom ()
 return current atom
 
bool end ()
 return true if iterator is over the last atom
 
void next ()
 if iteration is not finished, advance to next atom
 
void operator++ ()
 redefinition of ++ operator, advance iterator to next atom
 
 ~AtomIterator ()=default
 destructor
 

Detailed Description

Allow iteration over a set of atoms given by a target list (component name or index list)

Constructor & Destructor Documentation

◆ AtomIterator()

AtomIterator::AtomIterator ( PhysicalModel pml,
std::string  targetList 
)

constructor

References a, PhysicalModel::getAtom(), PhysicalModel::getComponentByName(), TargetList::getIndexedTarget(), TargetList::getNamedTarget(), StructuralComponent::getNumberOfStructures(), TargetList::getNumberOfTargets(), StructuralComponent::getStructure(), and TargetList::indexedTargets().

+ Here is the call graph for this function:

◆ ~AtomIterator()

AtomIterator::~AtomIterator ( )
default

destructor

Member Function Documentation

◆ begin()

◆ currentAtom()

◆ end()

◆ next()

void AtomIterator::next ( )

if iteration is not finished, advance to next atom

References end().

Referenced by MonitorDisplacement::calculate(), MonitorDistanceX::calculate(), MonitorDistanceY::calculate(), MonitorDistanceZ::calculate(), MonitorGeometricDeviation::calculate(), MonitorNormDisplacement::calculate(), MonitorPointFinalSetDistance::calculate(), MonitorPointSetDistance::calculate(), MonitorPointToTriangleMeshDistanceFinal::calculate(), MonitorPosition::calculate(), MonitorRen::calculate(), Reference::getDistanceToTriangularMesh(), Reference::getNearest(), Reference::getNearest(), and Monitor::Monitor().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator++()

void AtomIterator::operator++ ( )

redefinition of ++ operator, advance iterator to next atom

References end().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: