![]() |
Coin
4.0.10
Coin3D core library
|
The SoFullPathView class provides safe access to a complete SoPath. More...
#include <Inventor/SoPath.h>
Public Member Functions | |
| int | getIndexFromTail (const int index) const |
| int | getLength (void) const |
| SoNode * | getNodeFromTail (const int index) const |
| SoNode * | getTail (void) const |
The SoFullPathView class provides safe access to a complete SoPath.
SoFullPathView is a non-owning view over a SoPath. It provides the alternate path operations whose SoPath equivalents stop at hidden children. The source SoPath must outlive the view.
Obtain a view through SoPath::fullPath(). The view reflects subsequent changes to the source path and does not allocate or alter reference counts.
| int SoFullPathView::getIndexFromTail | ( | const int | index | ) | const |
Returns the child index positioned index nodes from the actual tail, counting hidden children. Returns -1 if index is outside the complete path.
| int SoFullPathView::getLength | ( | void | ) | const |
Returns the number of nodes in the complete path, including hidden children. An empty path has length zero.
Returns the node positioned index nodes from the actual tail, counting hidden children. Returns NULL if index is outside the complete path.
Returns the actual tail node, including hidden children. Returns NULL when the path is empty.