public class MovementPathInterpolator
extends TransformInterpolator
Constructor and Description |
---|
MovementPathInterpolator(TransformGroup target,
TransformGroup orientationTarget)
Creates a MovementPathInterpolator.
|
Modifier and Type | Method and Description |
---|---|
void |
computeTransform(float alphaValue,
Transform3D transform) |
void |
processStimulus(java.util.Enumeration criteria) |
void |
start(VisualizationClockAlpha alpha,
float[] durationKnots,
float[] speedKnots,
Point3f[] positionKnots)
Sets the movement data and start the interpolator.
|
void |
startWithFocusOnTrack(VisualizationClockAlpha alpha,
float[] durationKnots,
float[] speedKnots,
Point3f[] positionKnots,
Vector3d frontSideVec) |
void |
stop()
Stops the animation.
|
public MovementPathInterpolator(TransformGroup target, TransformGroup orientationTarget)
target
- The transformGroup node affected by this transformInterpolatororientationTarget
- The TransformGroup responsible for the orientation.public void computeTransform(float alphaValue, Transform3D transform)
public void processStimulus(java.util.Enumeration criteria)
public void stop()
public void start(VisualizationClockAlpha alpha, float[] durationKnots, float[] speedKnots, Point3f[] positionKnots)
alpha
- The alpha which gives the durationdurationKnots
- A float[3] array which describes the duration of the
3 phases movement.speedKnots
- A float[3] array which describes the speed of the
3 phases movement.positionKnots
- An array of points which describe the route of the
movement.public void startWithFocusOnTrack(VisualizationClockAlpha alpha, float[] durationKnots, float[] speedKnots, Point3f[] positionKnots, Vector3d frontSideVec)