public class SoFullPath extends SoPath
SoPath
"full" methods to access hidden children in paths. For example: To build a newSoPath path = ... SoNode tail = path.full.getTail();
SoPath
that exposes all the nodes (both visible and hidden) in a given path, for example to apply an action to hidden children, do this: SoPath fullpath = path.full.copy(0);
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:
SoPath* path = ... SoRef<SoPath> tempPath = ((SoFullPath*)path)->copy(); action.apply( tempPath ); tempPath = NULL;
File format/default:
SoPath
{
[head node] | |
[number of remaining indices] | |
[index] | |
&... | |
[index] |
See also:
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
int |
getIndexFromTail(int i)
Deprecated.
Returns the index of the i'th node (within its parent) in the chain, counting backward from the tail node.
|
int |
getInstanceIndexFromTail(int i)
Deprecated.
get instance Index from tail
|
int |
getLength()
Deprecated.
Returns length of path chain (number of nodes).
|
SoNode |
getNodeFromTail(int i)
Deprecated.
Returns the i'th node (within its parent) in the chain, counting backward from the tail node.
|
SoNode |
getTail()
Deprecated.
Returns the last node in a path chain.
|
void |
pop()
Deprecated.
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. |
append, append, append, containsNode, containsPath, copy, copy, copy, equals, findFork, getAllByName, getByName, getHead, getIndex, getNode, opeq, push, setHead, truncate
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable, touch
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public SoNode getTail()
public void pop()
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.public int getIndexFromTail(int i)
getIndexFromTail
in class SoPath
public int getInstanceIndexFromTail(int i)
public SoNode getNodeFromTail(int i)
getNodeFromTail
in class SoPath
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com