MeVisLabToolboxReference
ml::CSOPathPointConstIterator Class Reference

#include <CSOPathPointIterator.h>

List of all members.

Public Member Functions

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

Static Public Attributes

static const unsigned int INVALID_INDEX

Detailed Description

Definition at line 182 of file CSOPathPointIterator.h.


Constructor & Destructor Documentation

ml::CSOPathPointConstIterator::CSOPathPointConstIterator ( )

Default constructor.

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

Constructor.

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

Constructor.

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

Constructor.

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

Constructor.

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

Copy constructor.

ml::CSOPathPointConstIterator::~CSOPathPointConstIterator ( ) [inline]

Default destructor.

Definition at line 206 of file CSOPathPointIterator.h.


Member Function Documentation

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

Returns the CSO.

Definition at line 249 of file CSOPathPointIterator.h.

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

Returns the index of the current path.

Definition at line 252 of file CSOPathPointIterator.h.

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

Definition at line 257 of file CSOPathPointIterator.h.

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

Returns the index of the current point.

Definition at line 254 of file CSOPathPointIterator.h.

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

Returns the current point.

Definition at line 260 of file CSOPathPointIterator.h.

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

Returns the current point including its value.

Definition at line 262 of file CSOPathPointIterator.h.

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

Returns the value of the current point.

Definition at line 264 of file CSOPathPointIterator.h.

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 286 of file CSOPathPointIterator.h.

References ml::CSOGeometry::INVALID_INDEX.

void ml::CSOPathPointConstIterator::makeEnd ( )

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

CSOPathPointConstIterator ml::CSOPathPointConstIterator::next ( ) const

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

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

Returns the total number of points of the CSO.

Definition at line 267 of file CSOPathPointIterator.h.

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 270 of file CSOPathPointIterator.h.

References ml::mlAbs().

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 273 of file CSOPathPointIterator.h.

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

Comparison operator.

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

Steps to the next point by the given offset.

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

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

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

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

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

Steps to the next point by the given offset.

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

Steps to the previous point by the given offset.

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

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

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

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

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

Steps to the previous point by the given offset.

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

Comparison operator.

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

Comparison operator.

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

Assignment operator.

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

Comparison operator.

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

Comparison operator.

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

Comparison operator.

CSOPathPointConstIterator ml::CSOPathPointConstIterator::prev ( ) const

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

void ml::CSOPathPointConstIterator::resetCounters ( ) [inline]

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

Definition at line 278 of file CSOPathPointIterator.h.


Member Data Documentation

const unsigned int ml::CSOPathPointConstIterator::INVALID_INDEX [static]

Definition at line 188 of file CSOPathPointIterator.h.


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