A SoLightweightPath 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>
|
| SoLightweightPath (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 SoLightweightPath.
|
|
| ~SoLightweightPath () |
|
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 350 of file SoPath.h.
◆ SoLightweightPath()
SoLightweightPath::SoLightweightPath |
( |
int |
approxLength | ) |
|
◆ ~SoLightweightPath()
SoLightweightPath::~SoLightweightPath |
( |
| ) |
|
◆ append()
void SoLightweightPath::append |
( |
int |
childIndex | ) |
|
|
inline |
◆ getFullLength()
int SoLightweightPath::getFullLength |
( |
| ) |
const |
|
inline |
◆ getHead()
SoNode * SoLightweightPath::getHead |
( |
| ) |
const |
|
inline |
◆ getNode()
SoNode * SoLightweightPath::getNode |
( |
int |
i | ) |
const |
◆ getTail()
SoNode * SoLightweightPath::getTail |
( |
| ) |
|
|
inline |
◆ makeTempPath()
void SoLightweightPath::makeTempPath |
( |
SoTempPath * |
tmpPath | ) |
const |
◆ pop()
void SoLightweightPath::pop |
( |
| ) |
|
|
inline |
◆ push() [1/2]
void SoLightweightPath::push |
( |
| ) |
|
|
inline |
◆ push() [2/2]
void SoLightweightPath::push |
( |
int |
childIndex | ) |
|
|
inline |
◆ setHead()
void SoLightweightPath::setHead |
( |
SoNode * |
node | ) |
|
◆ setTail()
void SoLightweightPath::setTail |
( |
int |
childIndex | ) |
|
|
inline |
◆ truncate()
void SoLightweightPath::truncate |
( |
int |
start | ) |
|
|
inline |
◆ SoAction
The documentation for this class was generated from the following file:
- C:/jh/mevislab/4.0.2_1/build/MeVis/ThirdParty/Sources/Inventor/include/Inventor/SoPath.h