|
Aviatrix3D 2.1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.j3d.aviatrix3d.SceneGraphPath
public class SceneGraphPath
Representation of a path of nodes through the scene graph.
A path consists of at least a root node and a leaf node, representing the
two ends of the path. The root and leaf may be the same node instance. The
terminating node must always be an instance of Leaf.
Internationalisation Resource Names
| 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. |
void |
updatePath(PickTarget[] picks,
int num,
javax.vecmath.Matrix4f mat,
javax.vecmath.Matrix4f iMat)
Set the scene graph path to the new value from a set of PickTarget
instances. |
| 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 root
public void updatePath(PickTarget[] picks,
int num,
javax.vecmath.Matrix4f mat,
javax.vecmath.Matrix4f iMat)
PickTarget
instances. Invalidates the current
matrix and another will need to be calculated. The final item in the
path must be an instance of a leaf node. If not, an exception is
generated.
picks - The list of pick targets 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 2.1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||