|
MeVisLab Toolbox Reference
|
The CSOPathPoints is a list of world coordinates that are interpolated by a certain interpolation scheme between seed points of a CSO. More...
#include <CSOPathPoints.h>
Public Member Functions | |
| CSOPathPoints () | |
| Standard constructor. | |
| CSOPathPoints (const CSOPathPoints &pathPoints) | |
| Copy constructor. | |
| virtual | ~CSOPathPoints () |
| Standard destructor. | |
| void | appendPosition (const Vector3 &pos) |
| Adds a new position to the internal vector. | |
| unsigned int | numPathPoints () const |
| Returns the number of stored points. | |
| float | getValueAt (unsigned int index) const |
Returns a value at a specified index. | |
| const Vector4 & | getPosValueAt (unsigned int index) const |
Returns a position with a value at a specified index. | |
| Vector3 | getPosAt (unsigned int index) const |
Returns a position at a specified index index. | |
| void | getPosAt (unsigned int index, Vector3 &pos) |
| Variants of getPosAt for use in templates. | |
| void | getPosAt (unsigned int index, Vector4 &pos) |
| void | setAllValuesTo (float value) |
| Sets all posValues to the specified value. | |
| void | setAllValuesTo (float startVal, float endVal) |
| Sets all posValues from first pos:startVal to last pos-:endVal. | |
| void | setValueAt (const float value, unsigned int index) |
| Sets a value at the specified index. | |
| void | setPosValueAt (const Vector4 &posVal, unsigned int index) |
| Sets a position/value pair at the specified index. | |
| void | setPosAt (const Vector3 &pos, unsigned int index) |
| Sets the specified position at the specified index. | |
| void | clearPositions () |
| Clears internal world positions. | |
| double | getLength () const |
| Returns the length of this path point list. | |
| void | movePathPoints (double x, double y, double z) |
| Moves all the path points by the specified offset. | |
| void | removePositions () |
| Removes all positions from the internal vector and marks this path point list as being changed (for bounding box computations, etc.). | |
| void | removePositions (unsigned int startIndex, unsigned int endIndex) |
| Removes positions from the internal vector in the specified range. | |
| void | getPositionValues (std::vector< Vector4 > &posValues) const |
| Fills the specified vector with all position/value pairs. | |
| void | getWorldPositions (std::vector< Vector3 > &positions) const |
| Fills the specified vector with all the internal positions. | |
| void | setPositionValues (const std::vector< Vector4 > &newPosValues) |
| Sets the position/value pairs from the specified vector. | |
| void | setWorldPositions (const std::vector< Vector3 > &newPositions) |
| Sets the coordinates from the specified vector as the PathPoints world positions. | |
| const CSOBoundingBox & | getWorldBoundingBox () |
| Returns the world bounding box for this PathPoints. | |
| CSOBoundingBox | getVoxelBoundingBox (const Matrix4 &worldToVoxelMatrix, size_t hashKey) |
| Returns the voxel bounding box for this PathPoints. | |
| void | pathChanged () |
| Invalidates the world and voxel bounding boxes, so they are computed anew. | |
Public Attributes | |
| CSOSeedPoint * | headSeedPoint |
| A pointer to this path's head seed point. | |
| CSOSeedPoint * | tailSeedPoint |
| A pointer to this path's tail seed point. | |
The CSOPathPoints is a list of world coordinates that are interpolated by a certain interpolation scheme between seed points of a CSO.
Definition at line 36 of file CSOPathPoints.h.
| ml::CSOPathPoints::CSOPathPoints | ( | ) |
Standard constructor.
| ml::CSOPathPoints::CSOPathPoints | ( | const CSOPathPoints & | pathPoints | ) |
Copy constructor.
|
virtual |
Standard destructor.
Adds a new position to the internal vector.
Definition at line 48 of file CSOPathPoints.h.
References mlrange_cast().
Referenced by ml::CSOReadValueFromStream< CSOPathPoints >().
|
inline |
Clears internal world positions.
Definition at line 104 of file CSOPathPoints.h.
| double ml::CSOPathPoints::getLength | ( | ) | const |
Returns the length of this path point list.
Returns a position at a specified index index.
For performance reasons, this function does not check whether the index is valid.
Definition at line 73 of file CSOPathPoints.h.
References mlrange_cast().
Referenced by ml::CSOWriteValueToStream< CSOPathPoints >().
Variants of getPosAt for use in templates.
Definition at line 81 of file CSOPathPoints.h.
Definition at line 85 of file CSOPathPoints.h.
Fills the specified vector with all position/value pairs.
Returns a position with a value at a specified index.
For performance reasons, this function does not check whether the index is valid.
Definition at line 67 of file CSOPathPoints.h.
Returns a value at a specified index.
For performance reasons, this function does not check whether the index is valid.
Definition at line 61 of file CSOPathPoints.h.
| CSOBoundingBox ml::CSOPathPoints::getVoxelBoundingBox | ( | const Matrix4 & | worldToVoxelMatrix, |
| size_t | hashKey ) |
Returns the voxel bounding box for this PathPoints.
| const CSOBoundingBox & ml::CSOPathPoints::getWorldBoundingBox | ( | ) |
Returns the world bounding box for this PathPoints.
Fills the specified vector with all the internal positions.
Moves all the path points by the specified offset.
Returns the number of stored points.
Definition at line 55 of file CSOPathPoints.h.
Referenced by ml::CSOWriteValueToStream< CSOPathPoints >().
| void ml::CSOPathPoints::pathChanged | ( | ) |
Invalidates the world and voxel bounding boxes, so they are computed anew.
| void ml::CSOPathPoints::removePositions | ( | ) |
Removes all positions from the internal vector and marks this path point list as being changed (for bounding box computations, etc.).
Removes positions from the internal vector in the specified range.
Sets all posValues from first pos:startVal to last pos-:endVal.
Sets the specified position at the specified index.
Sets the position/value pairs from the specified vector.
Sets a position/value pair at the specified index.
Sets a value at the specified index.
Sets the coordinates from the specified vector as the PathPoints world positions.
| CSOSeedPoint* ml::CSOPathPoints::headSeedPoint |
A pointer to this path's head seed point.
Definition at line 140 of file CSOPathPoints.h.
| CSOSeedPoint* ml::CSOPathPoints::tailSeedPoint |
A pointer to this path's tail seed point.
Definition at line 142 of file CSOPathPoints.h.