|
Aviatrix3D 1.0 | ||||||||||
| 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,
javax.vecmath.Matrix4f iMat)
Create a new path with the given nodes from the array as the base path definition. |
|
| Method Summary | |
void |
getInverseTransform(javax.vecmath.Matrix4f mat)
Get the transformation matrix from the terminal node to the root of the path. |
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,
javax.vecmath.Matrix4f iMat)
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 < 1
public SceneGraphPath(Node[] nodes,
int num,
javax.vecmath.Matrix4f mat,
javax.vecmath.Matrix4f iMat)
throws java.lang.IllegalArgumentException
nodes - The list of nodes to copynum - The number of nodes to copy from the arraymat - The transformation matrix from the root to the local nodeiMat - The transformation matrix from the local node to the root
java.lang.IllegalArgumentException - The last node is not a Leaf| Method Detail |
public void updatePath(Node[] nodes,
int num,
javax.vecmath.Matrix4f mat,
javax.vecmath.Matrix4f iMat)
nodes - The list of nodes to copynum - The number of nodes to copy from the arraymat - The transformation matrix from the root to the local nodeiMat - The transformation matrix from the local node to the rootpublic 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 intopublic void getInverseTransform(javax.vecmath.Matrix4f mat)
mat - The matrix to copy the values into
|
Aviatrix3D 1.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||