Open Inventor Reference
|
This SoEXTENDER class allows expert users to examine "hidden" children in paths. More...
#include <Inventor/SoPath.h>
Public Member Functions | |
void | pop () |
Override methods that normally stop at last public child: | |
SoNode * | getTail () const |
These return the first and last nodes in a path chain. | |
SoNode * | getNodeFromTail (int i) const |
Returns a pointer to the i'th node. Passing 0 for i returns the tail node. | |
int | getIndexFromTail (int i) const |
Returns the index of the i'th node (within its parent) in the chain, counting backward from the tail node. | |
int | getLength () const |
Returns length of path chain (number of nodes). | |
Friends | |
class | SoTempPath |
SoPath allows access from the head node down to the first node with hidden children, but no further. Casting an SoPath to an SoFullPath (which is always guaranteed to be safe) allows you to get at hidden children. SoFullPath overrides some of the methods defined on paths to make this possible.
int SoFullPath::getIndexFromTail | ( | int | i | ) | const [inline] |
int SoFullPath::getLength | ( | ) | const [inline] |
SoNode* SoFullPath::getNodeFromTail | ( | int | i | ) | const [inline] |
SoNode* SoFullPath::getTail | ( | ) | const [inline] |
void SoFullPath::pop | ( | ) | [inline] |
These allow a path to be treated as a stack; they push a node at the end of the chain and pop the last node off.
Reimplemented from SoPath.
Definition at line 306 of file SoPath.h.
References SoPath::truncate().
friend class SoTempPath [friend] |