MeVisLab Toolbox Reference
|
#include <CSOPathPointIterator.h>
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 | |
Default destructor. | |
CSOPathPointConstIterator & | operator++ () |
Steps to the next point on the CSO (prefix). | |
CSOPathPointConstIterator | operator++ (int dummy) |
Steps to the next point on the CSO (postfix). | |
CSOPathPointConstIterator & | operator-- () |
Steps to the previous point on the CSO (prefix). | |
CSOPathPointConstIterator | operator-- (int dummy) |
Steps to the previous point on the CSO (postfix). | |
CSOPathPointConstIterator & | operator+= (int offset) |
Steps to the next point by the given offset. | |
CSOPathPointConstIterator & | operator-= (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. | |
CSOPathPointConstIterator & | operator= (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 CSO * | getCSO () 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 CSOPathPoints * | getPathPoints () const |
Vector3 | getPos () const |
Returns the current point. | |
const Vector4 & | getPosValue () 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 |
Definition at line 186 of file CSOPathPointIterator.h.
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.
|
default |
Default destructor.
Returns the CSO.
Definition at line 253 of file CSOPathPointIterator.h.
Returns the index of the current path.
Definition at line 256 of file CSOPathPointIterator.h.
|
inline |
Definition at line 261 of file CSOPathPointIterator.h.
Returns the index of the current point.
Definition at line 258 of file CSOPathPointIterator.h.
|
inline |
Returns the current point.
Definition at line 264 of file CSOPathPointIterator.h.
Returns the current point including its value.
Definition at line 266 of file CSOPathPointIterator.h.
|
inline |
Returns the value of the current point.
Definition at line 268 of file CSOPathPointIterator.h.
|
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.
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.
Returns the total number of points of the CSO.
Definition at line 271 of file CSOPathPointIterator.h.
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().
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.
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++ | ( | ) |
Steps to the next point on the CSO (prefix).
CSOPathPointConstIterator ml::CSOPathPointConstIterator::operator++ | ( | int | dummy | ) |
Steps to the next point on the CSO (postfix).
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-- | ( | ) |
Steps to the previous point on the CSO (prefix).
CSOPathPointConstIterator ml::CSOPathPointConstIterator::operator-- | ( | int | dummy | ) |
Steps to the previous point on the CSO (postfix).
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.
|
inline |
Resets the internal counters that define the number of processed points.
Definition at line 282 of file CSOPathPointIterator.h.
Definition at line 192 of file CSOPathPointIterator.h.