public class MultiTransformGroup extends Object
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 and Description |
---|
MultiTransformGroup()
Creates a MultiTransformGroup node that contains a single transform.
|
MultiTransformGroup(int numTransforms)
Creates a MultiTransformGroup node that contains the specified
number of transforms.
|
Modifier and Type | Method and Description |
---|---|
int |
getNumTransforms()
Returns the number of transforms in this MultiTransformGroup object.
|
TransformGroup |
getTransformGroup(int transform)
Returns the selected TransformGroup node.
|
public MultiTransformGroup()
public MultiTransformGroup(int numTransforms)
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).
numTransforms
- The number of transforms for this node to
contain. If this number is less than one, one is assumed.public TransformGroup getTransformGroup(int transform)
transform
- The index of the transform to return. The indices
are in the range [0..(n - 1)] - where n was the number of transforms
created. 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).public int getNumTransforms()
Copyright © 2016–2022 SciJava. All rights reserved.