A SoLightPath is a light-weight version of an SoTempPath, intended to be used just to keep track of the current path during traversal.
More...
#include <Inventor/SoPath.h>
List of all members.
Public Member Functions |
| SoLightPath (int approxLength) |
| Constructor given approximate number of nodes in chain.
|
void | setHead (SoNode *node) |
| Sets head node (first node in chain) Resulting path has only one node.
|
void | append (int childIndex) |
| Adds node specified by childindex to end of chain.
|
void | push (int childIndex) |
| Allows path to be treated as a stack: push a node at the end of the chain and pop the last node off.
|
void | push () |
void | pop () |
void | setTail (int childIndex) |
SoNode * | getTail () |
SoNode * | getHead () const |
| Returns the first node in a path chain.
|
SoNode * | getNode (int i) const |
| Returns pointer to ith node in chain.
|
int | getFullLength () const |
| Returns full length of path chain (number of nodes) note that public/private distinction is ignored.
|
void | truncate (int start) |
| Removes all nodes from indexed node on.
|
void | makeTempPath (SoTempPath *tmpPath) const |
| fills in nodes for a TempPath that is represented by this SoLightPath.
|
Friends |
class | SoAction |
Detailed Description
Eventually it is intended to replace SoTempPath (when appropriate modifications are made to SoDraggers). Unlike SoPath, it keeps only a chain of childIndices and a headnode. The methods implemented are only those needed for traversal.
Definition at line 348 of file SoPath.h.
Constructor & Destructor Documentation
SoLightPath::SoLightPath |
( |
int |
approxLength | ) |
|
Member Function Documentation
void SoLightPath::append |
( |
int |
childIndex | ) |
[inline] |
int SoLightPath::getFullLength |
( |
| ) |
const [inline] |
SoNode* SoLightPath::getHead |
( |
| ) |
const [inline] |
SoNode* SoLightPath::getNode |
( |
int |
i | ) |
const |
SoNode* SoLightPath::getTail |
( |
| ) |
[inline] |
void SoLightPath::makeTempPath |
( |
SoTempPath * |
tmpPath | ) |
const |
void SoLightPath::pop |
( |
| ) |
[inline] |
void SoLightPath::push |
( |
| ) |
[inline] |
void SoLightPath::push |
( |
int |
childIndex | ) |
[inline] |
void SoLightPath::setHead |
( |
SoNode * |
node | ) |
|
void SoLightPath::setTail |
( |
int |
childIndex | ) |
[inline] |
void SoLightPath::truncate |
( |
int |
start | ) |
[inline] |
Friends And Related Function Documentation
The documentation for this class was generated from the following file:
- MeVis/ThirdParty/Sources/Inventor/inventor/lib/database/include/Inventor/SoPath.h