All Packages Class Hierarchy This Package Previous Next Index
Class java.media.j3d.PositionPathInterpolator
java.lang.Object
|
+----java.media.j3d.SceneGraphObject
|
+----java.media.j3d.Node
|
+----java.media.j3d.Leaf
|
+----java.media.j3d.Behavior
|
+----java.media.j3d.Interpolator
|
+----java.media.j3d.PositionPathInterpolator
- public class PositionPathInterpolator
- extends Interpolator
Position path interpolation behavior. This class constructs a
behavior that varies the translational component of its target
TransformGroup by interpolating among a series of predefined
positions.
-
PositionPathInterpolator(Alpha, TransformGroup, Transform3D, float[], Point3f[])
- Constructs a new translator path that varies the target transform
node translation component.
-
arrayLengths()
- Retrieves the length of the knots and positions arrays
-
getKnot(int)
- Retrieve the knot at the specified index
-
getPosition(int, Point3f)
- Retrieve the position at the specified index
-
getTarget()
- Retrieve this Interpolator's target reference
-
processStimulus(Enumeration)
- The PositionPathInterpolation Behavior
-
setKnot(int, float)
- Set the knot at the specified index for this Interpolator
-
setPosition(int, Point3f)
- Set the position at the specified index for this Interpolator
-
setTarget(TransformGroup)
- Set the target for this Interpolator
PositionPathInterpolator
public PositionPathInterpolator(Alpha alpha,
TransformGroup target,
Transform3D axisOfTranslation,
float knots[],
Point3f positions[])
- Constructs a new translator path that varies the target transform
node translation component.
- Parameters:
- alpha - The alpha object for this Interpolator
- target - the transform node effected by this translator
- axisOfTranslation - the transform that take axis of translation
and make it coincide with the Z axis
- knots - an array of knot values that specify a spline
- positions - an array of position values at the knots
arrayLengths
public int arrayLengths()
- Retrieves the length of the knots and positions arrays
- Returns:
- the array length
setPosition
public void setPosition(int index,
Point3f position)
- Set the position at the specified index for this Interpolator
- Parameters:
- index - The index to be changed
- position - The new position at index
getPosition
public void getPosition(int index,
Point3f position)
- Retrieve the position at the specified index
- Parameters:
- index - The index of the value requested
- position - the variable to receive the position value at
specified index
setKnot
public void setKnot(int index,
float knot)
- Set the knot at the specified index for this Interpolator
- Parameters:
- index - The index to be changed
- knot - The new knot index
getKnot
public float getKnot(int index)
- Retrieve the knot at the specified index
- Parameters:
- index - The index of the value requested
- Returns:
- the interpolator's knot value at the index
setTarget
public void setTarget(TransformGroup target)
- Set the target for this Interpolator
- Parameters:
- target - The target material
getTarget
public TransformGroup getTarget()
- Retrieve this Interpolator's target reference
- Returns:
- the Interpolator's target material
processStimulus
public void processStimulus(Enumeration criteria)
- The PositionPathInterpolation Behavior
- Parameters:
- criteria - An enumeration of WakeupCriterion that have triggered.
- Overrides:
- processStimulus in class Behavior
All Packages Class Hierarchy This Package Previous Next Index