public class RotationSwitchInterpolator
extends RotationInterpolator
Constructor and Description |
---|
RotationSwitchInterpolator(TransformGroup target)
Constructs a RotationSwitchInterpolator.
|
Modifier and Type | Method and Description |
---|---|
void |
computeTransform(float alphaValue,
Transform3D transform) |
void |
processStimulus(java.util.Enumeration criteria) |
void |
start(VisualizationClockAlpha alpha,
float maximumAngle,
Transform3D transformAxis,
Transform3D currentTransform)
Sets the rotation data and start the interpolator.
|
void |
stop()
Stops the animation
|
public RotationSwitchInterpolator(TransformGroup target)
target
- The transformGroup node affected by this transformInterpolatorpublic void computeTransform(float alphaValue, Transform3D transform)
public void processStimulus(java.util.Enumeration criteria)
public void stop()
public void start(VisualizationClockAlpha alpha, float maximumAngle, Transform3D transformAxis, Transform3D currentTransform)
alpha
- The alpha which gives the durationmaximumAngle
- the ending angle in radianstransformAxis
- the transform that defines the local coordinate
system in which this interpolator operates. The rotation is done about
the Y-axis of this local coordinate system.currentTransform
- the transform that contains the current
orientation data of the object.