| java.lang.Object com.sun.j3d.utils.universe.MultiTransformGroup
MultiTransformGroup | public class MultiTransformGroup (Code) | | A convenience class that effectively creates a series of TransformGroup
nodes connected one to another hierarchically. For most applications,
creating a MultiTransformGroup containing one transform will suffice.
More sophisticated applications that use a complex portal/head tracking
viewing system may find that more transforms are needed.
When more than one transform is needed, transform[0] is considered the
"top most" transform with repsect to the scene graph, (attached to the
ViewingPlatform node) and transform[numTransforms - 1] is the "bottom
most" transform (the ViewPlatorm object is attached to this transform).
|
Constructor Summary | |
public | MultiTransformGroup() Creates a MultiTransformGroup node that contains a single transform. | public | MultiTransformGroup(int numTransforms) Creates a MultiTransformGroup node that contains the specified
number of transforms.
When more than one transform is needed, transform[0] is considered the
"top most" transform with repsect to the scene graph, (attached to the
ViewingPlatform node) and transform[numTransforms - 1] is the "bottom
most" transform (the ViewPlatorm object is attached to this transform).
Parameters: numTransforms - The number of transforms for this node tocontain. |
Method Summary | |
public int | getNumTransforms() Returns the number of transforms in this MultiTransformGroup object. | public TransformGroup | getTransformGroup(int transform) Returns the selected TransformGroup node.
Parameters: transform - The index of the transform to return. |
MultiTransformGroup | public MultiTransformGroup()(Code) | | Creates a MultiTransformGroup node that contains a single transform.
This is effectively equivalent to creating a single TransformGroup
node.
|
MultiTransformGroup | public MultiTransformGroup(int numTransforms)(Code) | | Creates a MultiTransformGroup node that contains the specified
number of transforms.
When more than one transform is needed, transform[0] is considered the
"top most" transform with repsect to the scene graph, (attached to the
ViewingPlatform node) and transform[numTransforms - 1] is the "bottom
most" transform (the ViewPlatorm object is attached to this transform).
Parameters: numTransforms - The number of transforms for this node tocontain. If this number is less than one, one is assumed. |
getNumTransforms | public int getNumTransforms()(Code) | | Returns the number of transforms in this MultiTransformGroup object.
The number of transforms in this object. |
getTransformGroup | public TransformGroup getTransformGroup(int transform)(Code) | | Returns the selected TransformGroup node.
Parameters: transform - The index of the transform to return. The indicesare in the range [0..(n - 1)] - where n was the number of transformscreated. transform[0] is considered the"top most" transform with repsect to the scene graph, (attached to theViewingPlatform node) and transform[numTransforms - 1] is the "bottommost" transform (the ViewPlatorm object is attached to this transform). The TransformGroup node at the designated index. If an out ofrange index is given, null is returned. |
|
|