All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.media.j3d.RotationInterpolator

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

public class RotationInterpolator
extends Interpolator
Rotation interpolation behavior. This class constructs a behavior that varies the rotation component of its target TransformGroup.


Constructor Index

 o RotationInterpolator(Alpha, TransformGroup)
Constructs a trivial rotation interpolator with a specified target, a axisOfRotation set to identity, a minimum angle of 0.0f, and a maximum angle of 6.283185308f;.
 o RotationInterpolator(Alpha, TransformGroup, Transform3D, float, float)
Constructs a new rotatotion interpolator that varies the target transform node's rotation component.

Method Index

 o getMaximumAngle()
Retrieve this Interpolator's maximumAngle
 o getMinimumAngle()
Retrieve this Interpolator's minimumAngle
 o getTarget()
Retrieve this Interpolator's target reference
 o processStimulus(Enumeration)
The RotationInterpolator Behavior
 o setMaximumAngle(float)
Set the maximumAngle for this Interpolator
 o setMinimumAngle(float)
Set the minimumAngle for this Interpolator
 o setTarget(TransformGroup)
Set the target for this Interpolator

Constructors

 o RotationInterpolator
 public RotationInterpolator(Alpha alpha,
                             TransformGroup target)
Constructs a trivial rotation interpolator with a specified target, a axisOfRotation set to identity, a minimum angle of 0.0f, and a maximum angle of 6.283185308f;.

Parameters:
alpha - The alpha object for this Interpolator
target - The target for this rotation Interpolator
 o RotationInterpolator
 public RotationInterpolator(Alpha alpha,
                             TransformGroup target,
                             Transform3D axisOfRotation,
                             float minimumAngle,
                             float maximumAngle)
Constructs a new rotatotion interpolator that varies the target transform node's rotation component.

Parameters:
alpha - The alphs generator to use in the rotation computation.
target - the transform node effected by this translator
axisOfRotation - the transform that take axis of rotation and make it coincide with the Z axis
minimumAngle - the starting angle in radians
maximumAngle - the ending angle in radians

Methods

 o setMinimumAngle
 public void setMinimumAngle(float angle)
Set the minimumAngle for this Interpolator

Parameters:
angle - The new minimal angle
 o getMinimumAngle
 public float getMinimumAngle()
Retrieve this Interpolator's minimumAngle

Returns:
the interpolator's minimal angle value
 o setMaximumAngle
 public void setMaximumAngle(float angle)
Set the maximumAngle for this Interpolator

Parameters:
angle - The new maximal angle
 o getMaximumAngle
 public float getMaximumAngle()
Retrieve this Interpolator's maximumAngle

Returns:
the interpolator's maximal angle vslue
 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 RotationInterpolator Behavior

Parameters:
criteria - an enumeration of the criteria that caused the stimulus
Overrides:
processStimulus in class Behavior

All Packages  Class Hierarchy  This Package  Previous  Next  Index