public class SoPath extends SoBase
To build a new 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);
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoGeneralPath |
full
access to all nodes (public and hidden) in the path
|
SoNodekitPath |
nodekit
access only to nodekits in the path
|
SoGeneralPath |
regular
access to all public nodes in the path except hidden children in nodekits.
|
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoPath() |
SoPath(int approxLength) |
SoPath(SoNode node) |
Modifier and Type | Method and Description |
---|---|
void |
append(int childIndex)
Deprecated.
replaced by regular.append(int)
|
void |
append(SoNode childNode)
Deprecated.
replaced by regular.append(SoNode)
|
void |
append(SoPath fromPath)
Deprecated.
replaced by regular.append(SoPath)
|
boolean |
containsNode(SoNode node)
Deprecated.
replaced by regular.containsNode
|
boolean |
containsPath(SoPath path)
Deprecated.
replaced by regular.containsPath
|
SoPath |
copy()
Deprecated.
replaced by regular.copy(0)
|
SoPath |
copy(int startFromNodeIndex)
Deprecated.
replaced by regular.copy(int)
|
SoPath |
copy(int startFromNodeIndex,
int numNodes)
Deprecated.
replaced by regular.copy(int,int)
|
boolean |
equals(java.lang.Object obj)
Compares this object against the specified object.
|
int |
findFork(SoPath path)
Deprecated.
replaced by regular.findFork
|
static SoPath[] |
getAllByName(java.lang.String name)
Returns an array of all path with the given name.
|
static SoPath |
getByName(java.lang.String name)
Returns the last path that was given the name, either by
SoBase.setName(java.lang.String)
or by reading in a named path from a file. |
SoNode |
getHead()
Deprecated.
replaced by regular.getHead
|
int |
getIndex(int i)
Deprecated.
replaced by regular.getIndex
|
int |
getIndexFromTail(int i)
Deprecated.
replaced by regular.getIndexFromTail
|
int |
getLength()
Deprecated.
replaced by regular.getLength
|
SoNode |
getNode(int i)
Deprecated.
replaced by regular.getNode
|
SoNode |
getNodeFromTail(int i)
Deprecated.
replaced by regular.getNodeFromTail
|
SoNode |
getTail()
Deprecated.
replaced by regular.getTail
|
static boolean |
opeq(SoPath p1,
SoPath p2)
Deprecated.
use equals instead
|
void |
pop()
Deprecated.
replaced by regular.pop
|
void |
push(int childIndex)
Deprecated.
replaced by regular.push
|
void |
setHead(SoNode node)
Deprecated.
replaced by regular.setHead
|
void |
truncate(int start)
Deprecated.
replaced by regular.truncate
|
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable, touch
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public SoGeneralPath full
public SoGeneralPath regular
public SoNodekitPath nodekit
public SoPath()
public SoPath(SoNode node)
public SoPath(int approxLength)
public static SoPath getByName(java.lang.String name)
SoBase.setName(java.lang.String)
or by reading in a named path from a file.
If there is no path with the given name, null will be returned.public static SoPath[] getAllByName(java.lang.String name)
SoBase.setName(java.lang.String)
.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare with.public void setHead(SoNode node)
public void append(int childIndex)
public void append(SoNode childNode)
public void append(SoPath fromPath)
public void push(int childIndex)
public void pop()
public SoNode getHead()
public SoNode getTail()
public SoNode getNode(int i)
public SoNode getNodeFromTail(int i)
public int getIndex(int i)
public int getIndexFromTail(int i)
public int getLength()
public void truncate(int start)
public boolean containsNode(SoNode node)
public boolean containsPath(SoPath path)
public int findFork(SoPath path)
public SoPath copy()
public SoPath copy(int startFromNodeIndex)
public SoPath copy(int startFromNodeIndex, int numNodes)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com