public interface SoGeneralPath
see SoPath
Modifier and Type | Method and Description |
---|---|
void |
append(int childIndex)
Adds node to end of chain.
|
void |
append(SoNode childNode)
Adds node to end of chain.
|
void |
append(SoPath fromPath)
Adds all nodes in fromPath's chain to end of chain.
|
boolean |
containsNode(java.lang.Class type)
Returns true if the node type is found anywhere in the path chain.
|
boolean |
containsNode(SoNode node)
Returns true if the node is found anywhere in the path chain.
|
boolean |
containsPath(SoPath path)
Returns true if the nodes in the given path argument are contained
(in consecutive order) in this path.
|
SoPath |
copy(int startFromNodeIndex)
Creates and returns a new path that is a copy of some or all of this path.
|
SoPath |
copy(int startFromNodeIndex,
int numNodes)
Creates and returns a new path that is a copy of some or all of this path.
|
int |
findFork(SoPath path)
If the two paths have different head nodes,
this returns -1.
|
SoNode |
getHead()
Return the first node in a path chain
|
int |
getIndex(java.lang.Class type)
Returns the index in the chain of the first node the given type
from the head of chain.
|
int |
getIndex(int i)
Return the index of the i'th node (within its parent) in the chain.
|
int |
getIndexFromTail(int i)
Return the index of the i'th node (within its parent) in the chain,
counting backward from the tail node.
|
int |
getInstanceIndex(int i)
Returns the index of the instance inside the parent SoMultipleInstance,
SoMultipleCopy or SoArray group.
|
int |
getInstanceIndexFromTail(int i)
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()
Returns length of path chain (number of nodes).
|
SoNode |
getNode(java.lang.Class type)
Returns the first node from the head of
the given type in the chain.
|
SoNode |
getNode(int i)
Return the i'th node in the chain.
|
SoNode |
getNodeFromTail(int i)
Return the i'th node in the chain, counting backward from the tail node.
|
SoNode |
getTail()
Return the last node in a path chain
|
void |
pop()
Pop the last node off.
|
void |
push(int childIndex)
Push a node at the end of the chain.
|
void |
setHead(SoNode node)
Sets head node (first node in chain).
|
void |
truncate(int start)
Truncates the path chain, removing all nodes from index start on.
|
void setHead(SoNode node)
void append(int childIndex)
void append(SoNode childNode)
void append(SoPath fromPath)
void push(int childIndex)
pop()
void pop()
push(int)
SoNode getHead()
SoNode getTail()
SoNode getNode(int i)
SoNode getNode(java.lang.Class type) throws java.lang.IllegalArgumentException
type
- must be any class inherited from SoNodejava.lang.IllegalArgumentException
- when type is not a class inherited from SoNodegetIndex(Class)
int getIndex(java.lang.Class type) throws java.lang.IllegalArgumentException
type
- must be any class inherited from SoNodejava.lang.IllegalArgumentException
- when type is not a class inherited from SoNodegetIndex(Class)
int getIndex(int i)
SoNode getNodeFromTail(int i)
int getIndexFromTail(int i)
int getLength()
void truncate(int start)
boolean containsNode(SoNode node)
boolean containsNode(java.lang.Class type) throws java.lang.IllegalArgumentException
type
- must be any class inherited from SoNodejava.lang.IllegalArgumentException
boolean containsPath(SoPath path)
int findFork(SoPath path)
SoPath copy(int startFromNodeIndex)
SoPath copy(int startFromNodeIndex, int numNodes)
int getInstanceIndex(int i)
int getInstanceIndexFromTail(int i)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com