MeVisLab Toolbox Reference
ml::CSOPathPointConstIterator Class Reference

#include <CSOPathPointIterator.h>

Public Member Functions

 CSOPathPointConstIterator ()
 Default constructor. More...
 
 CSOPathPointConstIterator (const CSO *cso, unsigned int startPathIndex=0, unsigned int startPointIndex=0)
 Constructor. More...
 
 CSOPathPointConstIterator (const CSO *cso, const CSOPathPoints *pathPoints, unsigned int startPathIndex, unsigned int startPointIndex=0)
 Constructor. More...
 
 CSOPathPointConstIterator (const CSO *cso, const CSOPathPoints *pathPoints, unsigned int startPointIndex=0)
 Constructor. More...
 
 CSOPathPointConstIterator (const CSO *cso, const CSOSeedPoint *startSeedPoint)
 Constructor. More...
 
 CSOPathPointConstIterator (const CSOPathPointConstIterator &rhs)
 Copy constructor. More...
 
 ~CSOPathPointConstIterator ()=default
 Default destructor. More...
 
CSOPathPointConstIteratoroperator++ ()
 Steps to the next point on the CSO (prefix). More...
 
CSOPathPointConstIterator operator++ (int dummy)
 Steps to the next point on the CSO (postfix). More...
 
CSOPathPointConstIteratoroperator-- ()
 Steps to the previous point on the CSO (prefix). More...
 
CSOPathPointConstIterator operator-- (int dummy)
 Steps to the previous point on the CSO (postfix). More...
 
CSOPathPointConstIteratoroperator+= (int offset)
 Steps to the next point by the given offset. More...
 
CSOPathPointConstIteratoroperator-= (int offset)
 Steps to the previous point by the given offset. More...
 
CSOPathPointConstIterator operator+ (int offset) const
 Steps to the next point by the given offset. More...
 
CSOPathPointConstIterator operator- (int offset) const
 Steps to the previous point by the given offset. More...
 
CSOPathPointConstIteratoroperator= (const CSOPathPointConstIterator &rhs)
 Assignment operator. More...
 
bool operator== (const CSOPathPointConstIterator &rhs) const
 Comparison operator. More...
 
bool operator!= (const CSOPathPointConstIterator &rhs) const
 Comparison operator. More...
 
bool operator> (const CSOPathPointConstIterator &rhs) const
 Comparison operator. More...
 
bool operator>= (const CSOPathPointConstIterator &rhs) const
 Comparison operator. More...
 
bool operator< (const CSOPathPointConstIterator &rhs) const
 Comparison operator. More...
 
bool operator<= (const CSOPathPointConstIterator &rhs) const
 Comparison operator. More...
 
const CSOgetCSO () const
 Returns the CSO. More...
 
unsigned int getPathIndex () const
 Returns the index of the current path. More...
 
unsigned int getPointIndex () const
 Returns the index of the current point. More...
 
const CSOPathPointsgetPathPoints () const
 
Vector3 getPos () const
 Returns the current point. More...
 
const Vector4getPosValue () const
 Returns the current point including its value. More...
 
double getValue () const
 Returns the value of the current point. More...
 
unsigned int numPoints () const
 Returns the total number of points of the CSO. More...
 
unsigned int numProcessedPoints () const
 Returns the number of processed points (relative to the start). More...
 
unsigned int numTotalProcessedPoints () const
 Returns the total number of processed points (i.e. More...
 
void resetCounters ()
 Resets the internal counters that define the number of processed points. More...
 
void makeEnd ()
 Makes this iterator pointing to the "end" of the CSO. More...
 
bool isEnd () const
 Returns whether this iterator points to the end of the CSO. More...
 
CSOPathPointConstIterator next () const
 Returns an iterator to the next path point if available and otherwise a CSOPathPointIteratorEnd. More...
 
CSOPathPointConstIterator prev () const
 Returns an iterator to the prev path point if available and otherwise a CSOPathPointIteratorEnd. More...
 

Static Public Attributes

static const unsigned int INVALID_INDEX
 

Detailed Description

Definition at line 186 of file CSOPathPointIterator.h.

Constructor & Destructor Documentation

◆ CSOPathPointConstIterator() [1/6]

ml::CSOPathPointConstIterator::CSOPathPointConstIterator ( )

Default constructor.

◆ CSOPathPointConstIterator() [2/6]

ml::CSOPathPointConstIterator::CSOPathPointConstIterator ( const CSO cso,
unsigned int  startPathIndex = 0,
unsigned int  startPointIndex = 0 
)

Constructor.

◆ CSOPathPointConstIterator() [3/6]

ml::CSOPathPointConstIterator::CSOPathPointConstIterator ( const CSO cso,
const CSOPathPoints pathPoints,
unsigned int  startPathIndex,
unsigned int  startPointIndex = 0 
)

Constructor.

◆ CSOPathPointConstIterator() [4/6]

ml::CSOPathPointConstIterator::CSOPathPointConstIterator ( const CSO cso,
const CSOPathPoints pathPoints,
unsigned int  startPointIndex = 0 
)

Constructor.

◆ CSOPathPointConstIterator() [5/6]

ml::CSOPathPointConstIterator::CSOPathPointConstIterator ( const CSO cso,
const CSOSeedPoint startSeedPoint 
)

Constructor.

◆ CSOPathPointConstIterator() [6/6]

ml::CSOPathPointConstIterator::CSOPathPointConstIterator ( const CSOPathPointConstIterator rhs)

Copy constructor.

◆ ~CSOPathPointConstIterator()

ml::CSOPathPointConstIterator::~CSOPathPointConstIterator ( )
default

Default destructor.

Member Function Documentation

◆ getCSO()

const CSO* ml::CSOPathPointConstIterator::getCSO ( ) const
inline

Returns the CSO.

Definition at line 253 of file CSOPathPointIterator.h.

◆ getPathIndex()

unsigned int ml::CSOPathPointConstIterator::getPathIndex ( ) const
inline

Returns the index of the current path.

Definition at line 256 of file CSOPathPointIterator.h.

◆ getPathPoints()

const CSOPathPoints* ml::CSOPathPointConstIterator::getPathPoints ( ) const
inline

Definition at line 261 of file CSOPathPointIterator.h.

◆ getPointIndex()

unsigned int ml::CSOPathPointConstIterator::getPointIndex ( ) const
inline

Returns the index of the current point.

Definition at line 258 of file CSOPathPointIterator.h.

◆ getPos()

Vector3 ml::CSOPathPointConstIterator::getPos ( ) const
inline

Returns the current point.

Definition at line 264 of file CSOPathPointIterator.h.

◆ getPosValue()

const Vector4& ml::CSOPathPointConstIterator::getPosValue ( ) const
inline

Returns the current point including its value.

Definition at line 266 of file CSOPathPointIterator.h.

◆ getValue()

double ml::CSOPathPointConstIterator::getValue ( ) const
inline

Returns the value of the current point.

Definition at line 268 of file CSOPathPointIterator.h.

◆ isEnd()

bool ml::CSOPathPointConstIterator::isEnd ( ) const
inline

Returns whether this iterator points to the end of the CSO.

I.e. all points have been processed or the end of the CSO has been reached.

Definition at line 290 of file CSOPathPointIterator.h.

References ml::CSOGeometry::INVALID_INDEX.

◆ makeEnd()

void ml::CSOPathPointConstIterator::makeEnd ( )

Makes this iterator pointing to the "end" of the CSO.

◆ next()

CSOPathPointConstIterator ml::CSOPathPointConstIterator::next ( ) const

Returns an iterator to the next path point if available and otherwise a CSOPathPointIteratorEnd.

◆ numPoints()

unsigned int ml::CSOPathPointConstIterator::numPoints ( ) const
inline

Returns the total number of points of the CSO.

Definition at line 271 of file CSOPathPointIterator.h.

◆ numProcessedPoints()

unsigned int ml::CSOPathPointConstIterator::numProcessedPoints ( ) const
inline

Returns the number of processed points (relative to the start).

The maximum value returned by this function is equal numPoints()+1.

Definition at line 274 of file CSOPathPointIterator.h.

References ml::mlAbs().

◆ numTotalProcessedPoints()

unsigned int ml::CSOPathPointConstIterator::numTotalProcessedPoints ( ) const
inline

Returns the total number of processed points (i.e.

using both increments and decrements). The number returned by this function might be much larger than numPoints() when mixing up increments and decrements.

Definition at line 277 of file CSOPathPointIterator.h.

◆ operator!=()

bool ml::CSOPathPointConstIterator::operator!= ( const CSOPathPointConstIterator rhs) const

Comparison operator.

◆ operator+()

CSOPathPointConstIterator ml::CSOPathPointConstIterator::operator+ ( int  offset) const

Steps to the next point by the given offset.

◆ operator++() [1/2]

CSOPathPointConstIterator& ml::CSOPathPointConstIterator::operator++ ( )

Steps to the next point on the CSO (prefix).

◆ operator++() [2/2]

CSOPathPointConstIterator ml::CSOPathPointConstIterator::operator++ ( int  dummy)

Steps to the next point on the CSO (postfix).

◆ operator+=()

CSOPathPointConstIterator& ml::CSOPathPointConstIterator::operator+= ( int  offset)

Steps to the next point by the given offset.

◆ operator-()

CSOPathPointConstIterator ml::CSOPathPointConstIterator::operator- ( int  offset) const

Steps to the previous point by the given offset.

◆ operator--() [1/2]

CSOPathPointConstIterator& ml::CSOPathPointConstIterator::operator-- ( )

Steps to the previous point on the CSO (prefix).

◆ operator--() [2/2]

CSOPathPointConstIterator ml::CSOPathPointConstIterator::operator-- ( int  dummy)

Steps to the previous point on the CSO (postfix).

◆ operator-=()

CSOPathPointConstIterator& ml::CSOPathPointConstIterator::operator-= ( int  offset)

Steps to the previous point by the given offset.

◆ operator<()

bool ml::CSOPathPointConstIterator::operator< ( const CSOPathPointConstIterator rhs) const

Comparison operator.

◆ operator<=()

bool ml::CSOPathPointConstIterator::operator<= ( const CSOPathPointConstIterator rhs) const

Comparison operator.

◆ operator=()

CSOPathPointConstIterator& ml::CSOPathPointConstIterator::operator= ( const CSOPathPointConstIterator rhs)

Assignment operator.

◆ operator==()

bool ml::CSOPathPointConstIterator::operator== ( const CSOPathPointConstIterator rhs) const

Comparison operator.

◆ operator>()

bool ml::CSOPathPointConstIterator::operator> ( const CSOPathPointConstIterator rhs) const

Comparison operator.

◆ operator>=()

bool ml::CSOPathPointConstIterator::operator>= ( const CSOPathPointConstIterator rhs) const

Comparison operator.

◆ prev()

CSOPathPointConstIterator ml::CSOPathPointConstIterator::prev ( ) const

Returns an iterator to the prev path point if available and otherwise a CSOPathPointIteratorEnd.

◆ resetCounters()

void ml::CSOPathPointConstIterator::resetCounters ( )
inline

Resets the internal counters that define the number of processed points.

Definition at line 282 of file CSOPathPointIterator.h.

Member Data Documentation

◆ INVALID_INDEX

const unsigned int ml::CSOPathPointConstIterator::INVALID_INDEX
static

Definition at line 192 of file CSOPathPointIterator.h.


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