|
j3d.org Aviatrix3D | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.j3d.aviatrix3d.SceneGraphPath
Representation of a path of nodes through the scene graph.
Constructor Summary | |
SceneGraphPath()
Create a new path instance with a pre-allocated set of storage space internally. |
|
SceneGraphPath(int initialSize)
Create a new path instance with a pre-allocated set of storage space internally. |
|
SceneGraphPath(Node[] nodes,
int num,
javax.vecmath.Matrix4f mat)
Create a new path with the given nodes from the array as the base path definition. |
Method Summary | |
Node |
getNode(int pos)
Get a single node at the given index position. |
int |
getNodeCount()
Get the number of valid items in the path. |
Node[] |
getNodes()
Get the raw list of path items from the internal array. |
Node |
getTerminalNode()
Get the leaf node at the end of the path. |
void |
getTransform(javax.vecmath.Matrix4f mat)
Get the transformation matrix from the root of the path the to the terminal node. |
void |
updatePath(Node[] nodes,
int num,
javax.vecmath.Matrix4f mat)
Set the scene graph path to the new value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SceneGraphPath()
public SceneGraphPath(int initialSize)
initialSize
- number of items to create
java.lang.IllegalArgumentException
- if the number is < 1public SceneGraphPath(Node[] nodes, int num, javax.vecmath.Matrix4f mat) throws java.lang.IllegalArgumentException
nodes
- The list of nodes to copynum
- The number of nodes to copy from the array
java.lang.IllegalArgumentException
- The last node is not a LeafMethod Detail |
public void updatePath(Node[] nodes, int num, javax.vecmath.Matrix4f mat)
nodes
- The list of nodes to copynum
- The number of nodes to copy from the arraypublic Node getTerminalNode()
public Node getNode(int pos) throws java.lang.ArrayIndexOutOfBoundsException
pos
- The index of the node in the path
java.lang.ArrayIndexOutOfBoundsException
- The index was out of rangepublic Node[] getNodes()
public int getNodeCount()
public void getTransform(javax.vecmath.Matrix4f mat)
mat
- The matrix to copy the values into
|
j3d.org Aviatrix3D | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |