|
void | pop () |
| The push() and pop() methods 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.
|
|
SoNode * | getTail () const |
| Returns the last node in a path chain.
|
|
SoNode * | getNodeFromTail (int i) const |
| Returns the i'th node (within its parent) in the chain, counting backward from 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 | getInstanceIndexFromTail (int i) const |
| get instance Index from tail
|
|
int | getLength () const |
| Returns length of path chain (number of nodes).
|
|
| SoPath () |
| Constructs an empty path.
|
|
| SoPath (int approxLength) |
| Constructs a path with a hint to length (number of nodes in chain).
|
|
| SoPath (SoNode *node) |
| Constructs a path and sets the head node to the given node.
|
|
void | setHead (SoNode *node) |
| Sets head node (first node in chain).
|
|
void | append (int childIndex) |
| Adds node to end of chain; the node is the childIndex'th child of the current tail node.
|
|
void | append (SoNode *childNode) |
| Adds node to end of chain; uses the first occurrence of childNode as child of current tail node.
|
|
void | append (const SoPath *fromPath) |
| Adds all nodes in fromPath's chain to end of chain; the head node of fromPath must be the same as or a child of the current tail node.
|
|
void | push (int childIndex) |
| The push() and pop() methods 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.
|
|
void | pop () |
| The push() and pop() methods 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.
|
|
SoNode * | getHead () const |
| Returns the first node in a path chain.
|
|
SoNode * | getTail () const |
| Returns the last node in a path chain.
|
|
SoNode * | getNode (int i) const |
| Returns the i'th node (within its parent) in the chain.
|
|
SoNode * | getNode (const SoType type, int &i) const |
| Returns the first node and its index, from the head of the given type in the chain.
|
|
SoNode * | getNodeFromTail (int i) const |
| Returns the i'th node (within its parent) in the chain, counting backward from the tail node.
|
|
int | getIndex (int i) const |
| Returns the index of the i'th node (within its parent) in the chain.
|
|
int | getInstanceIndex (int i) const |
| Returns the index of the instance inside the parent SoMultipleInstance, SoMultipleCopy or SoArray group.
|
|
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 | getInstanceIndexFromTail (int i) const |
| Returns the index of the i'th node instance (within its parent, if it is a SoMultipleInstance, SoMultipleCopy or SoArray group in the chain, counting backward from the tail node.
|
|
int | getLength () const |
| Returns length of path chain (number of nodes).
|
|
void | truncate (int start) |
| Truncates the path chain, removing all nodes from index start on.
|
|
SbBool | containsNode (const SoNode *node) const |
| Returns TRUE if the node is found anywhere in the path chain.
|
|
SbBool | containsNode (const SoType type) const |
| Returns TRUE if the node type is found anywhere in the path chain.
|
|
SbBool | containsPath (const SoPath *path) const |
| Returns TRUE if the nodes in the chain in the passed path are contained (in consecutive order) in this path chain.
|
|
int | findFork (const SoPath *path) const |
| If the two paths have different head nodes, this returns -1.
|
|
SoPath * | copy (int startFromNodeIndex=0, int numNodes=0) const |
| Creates and returns a new path that is a copy of some or all of this path.
|
|
virtual SoType | getTypeId () const |
| Returns type identifier for path instance.
|
|
virtual void | touch () |
| Marks an instance as modified, simulating a change to it.
|
|
virtual SbName | getName () const |
| Returns the name of an instance.
|
|
virtual void | setName (const SbName &name) |
| Sets the name of an instance.
|
|
void | setSynchronizable (const bool b) |
| Sets this to be a ScaleViz synchronizable object.
|
|
bool | isSynchronizable () const |
| Gets the ScaleViz synchronizable state of this object.
|
|
void | ref () const |
| Adds a reference to an instance.
|
|
void | unref () const |
| Removes a reference from an instance.
|
|
void | unrefNoDelete () const |
| unrefNoDelete() should be called when it is desired to decrement the reference count, but not delete the instance if this brings the reference count to zero.
|
|
int | getRefCount () const |
| Returns current reference count.
|
|
void | lock () const |
| lock this instance.
|
|
void | unlock () const |
| unlock this instance.
|
|
SbBool | isOfType (const SoType &type) const |
| Returns TRUE if this object is of the type specified in type or is derived from that type.
|
|
template<typename TypedObjectClass > |
SbBool | isOfType () const |
| Returns TRUE if this object is of the type of class TypedObjectClass or is derived from that class.
|
|
Path that allows access to hidden children.
This class allows expert users to examine "hidden" children in paths. For example children inside a nodeKit. 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 access hidden children. SoFullPath overrides some SoPath methods to make this possible.
You need SoFullPath, for example, to get the actual tail of the pick path (the geometry node) when picking geometry in node kits. For example:
Path that allows access to hidden children.
Path that points to a list of hierarchical nodes.
SoNode * getTail() const
Returns the last node in a path chain.
NOTE: Applying an action on an SoFullPath may not give the expected result.
When applying an action on an SoFullPath, the "hidden" children will not be traversed. If you want to apply an action on all the children in the path, use the following technique:
action.apply( tempPath );
tempPath = NULL;
SoPath * copy(int startFromNodeIndex=0, int numNodes=0) const
Creates and returns a new path that is a copy of some or all of this path.
FILE FORMAT/DEFAULT
SEE ALSO
SoPath
Definition at line 612 of file SoPath.h.