All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.media.j3d.RotPosPathInterpolator

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.RotPosPathInterpolator

public class RotPosPathInterpolator
extends Interpolator
Rotation and Position path interpolation behavior. This class constructs a behavior that varies the rotation and position component of its target TransformGroup by interpolating among a series of predefined orientations and positions.


Constructor Index

 o RotPosPathInterpolator(Alpha, TransformGroup, Transform3D, float[], Quat4f[], Point3f[])
Constructs a new rotation and orientation path that varies the target transform node's position and rotation components..

Method Index

 o arrayLengths()
Retrieves the length of the knots, positions, and quats arrays
 o getKnot(int)
Retrieve the knot at the specified index
 o getPosition(int, Point3f)
Retrieve the position at the specified index
 o getQuat(int, Quat4f)
Retrieve the quat at the specified index
 o getTarget()
Retrieve this Interpolator's target reference
 o processStimulus(Enumeration)
The RotPosPathInterpolator Behavior
 o setKnot(int, float)
Set the knot at the specified index for this Interpolator
 o setPosition(int, Point3f)
Set the position at the specified index for this Interpolator
 o setQuat(int, Quat4f)
Set the quat at the specified index for this Interpolator
 o setTarget(TransformGroup)
Set the target for this Interpolator

Constructors

 o RotPosPathInterpolator
 public RotPosPathInterpolator(Alpha alpha,
                               TransformGroup target,
                               Transform3D axisOfRotPos,
                               float knots[],
                               Quat4f quats[],
                               Point3f positions[])
Constructs a new rotation and orientation path that varies the target transform node's position and rotation components..

Parameters:
alpha - The alpha object for this Interpolator
target - the transform node effected by this translator
axisOfRotPos - the transform that take axis of rotation and make it coincide with the Z axis
knots - an array of knot values that specify a spline
quats - an array of quaternion values at the knots

Methods

 o arrayLengths
 public int arrayLengths()
Retrieves the length of the knots, positions, and quats arrays

Returns:
the array length
 o setQuat
 public void setQuat(int index,
                     Quat4f quat)
Set the quat at the specified index for this Interpolator

Parameters:
index - The index to be changed
quat - The new quat at index
 o getQuat
 public void getQuat(int index,
                     Quat4f quat)
Retrieve the quat at the specified index

Parameters:
index - The index of the value requested
quat - the quat to receive the quat value at the index
 o 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
 o 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 position to receive the position value at the index
 o 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
 o 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 at the associated index
 o setTarget
 public void setTarget(TransformGroup target)
Set the target for this Interpolator

Parameters:
target - The target material
 o getTarget
 public TransformGroup getTarget()
Retrieve this Interpolator's target reference

Returns:
the Interpolator's target material
 o processStimulus
 public void processStimulus(Enumeration criteria)
The RotPosPathInterpolator Behavior

Parameters:
criteria - An enumeration of WakeupCriterion that have triggered.
Overrides:
processStimulus in class Behavior

All Packages  Class Hierarchy  This Package  Previous  Next  Index