com.vwp.j3d.utils.behaviors.interpolators
Class RotationInterpolatorX

java.lang.Object
  extended by RotationInterpolator
      extended by com.vwp.j3d.utils.behaviors.interpolators.RotationInterpolatorX
Direct Known Subclasses:
RotationInterpolatorXYZ, RotationInterpolatorY, RotationInterpolatorZ

public class RotationInterpolatorX
extends RotationInterpolator

This class bases on different interpolator classes from com.sun.j3d.utils.behaviours.interpolators and performs a rotation interpolation around the X axis


Constructor Summary
RotationInterpolatorX(Alpha alpha, TransformGroup target)
          Constructor for a rotation interpolator object
RotationInterpolatorX(Alpha alpha, TransformGroup transformgroup, double x, double y, double z)
          Constructor for a rotation interpolator object
RotationInterpolatorX(Alpha alpha, TransformGroup transformgroup, Transform3D transform3d, double f, double f1, double x, double y, double z)
          Constructor for a rotation interpolator object
 
Method Summary
 void emulateFrameSwitch(int framerate)
          This method lets this Interpolator work also if no frame switching occurs
 float getMaximumAngle()
          Returns the end angle for the rotation interpolator
 float getMinimumAngle()
          Returns the start angle for the rotation interpolator
 TransformGroup getTarget()
          Returns the TransformGroup which is target for the actual rotation interpolator
 void processStimulus(java.util.Enumeration enumeration)
           
 void setBaseRotation(double x, double y, double z)
          Sets the initial rotation angles for the actual used transform group; one of these axises is modified by the appropriate rotation interpolator
 void setMaximumAngle(float f)
          Sets the end angle for the rotation interpolator
 void setMinimumAngle(float f)
          Sets the start angle for the rotation interpolator
 void setTarget(TransformGroup transformgroup)
          Sets the TransformGroup which has to be the target for the actual rotation interpolator
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RotationInterpolatorX

public RotationInterpolatorX(Alpha alpha,
                             TransformGroup target)
Constructor for a rotation interpolator object

Parameters:
alpha - An Alpha object which describes the rotation that has to be performed
target - The transform group which has to be used to perform the rotation with

RotationInterpolatorX

public RotationInterpolatorX(Alpha alpha,
                             TransformGroup transformgroup,
                             double x,
                             double y,
                             double z)
Constructor for a rotation interpolator object

Parameters:
alpha - An Alpha object which describes the rotation that has to be performed
transformgroup - The transform group which has to be used to perform the rotation with
x - Initial x-angle, this value will be modified during this interpolator is active
y - Initial y-angle, this angle will not be influenced or modified by this interpolator
z - Initial z-angle, this angle will not be influenced or modified by this interpolator

RotationInterpolatorX

public RotationInterpolatorX(Alpha alpha,
                             TransformGroup transformgroup,
                             Transform3D transform3d,
                             double f,
                             double f1,
                             double x,
                             double y,
                             double z)
Constructor for a rotation interpolator object

Parameters:
alpha - An Alpha object which describes the rotation that has to be performed
transformgroup - The transform group which has to be used to perform the rotation with
f - The angle where the rotation has to start from
f1 - The end angle to what the interpolator has the object rotate to
x - Initial x-angle, this value will be modified during this interpolator is active
y - Initial y-angle, this angle will not be influenced or modified by this interpolator
z - Initial z-angle, this angle will not be influenced or modified by this interpolator
Method Detail

emulateFrameSwitch

public void emulateFrameSwitch(int framerate)
This method lets this Interpolator work also if no frame switching occurs

Parameters:
framerate - the number of frames per second which have to be emulated

setBaseRotation

public void setBaseRotation(double x,
                            double y,
                            double z)
Sets the initial rotation angles for the actual used transform group; one of these axises is modified by the appropriate rotation interpolator

Parameters:
x - Initial x-angle
y - Initial y-angle
z - Initial z-angle

setMinimumAngle

public void setMinimumAngle(float f)
Sets the start angle for the rotation interpolator

Parameters:
f - The angle where the rotation has to start from

getMinimumAngle

public float getMinimumAngle()
Returns the start angle for the rotation interpolator


setMaximumAngle

public void setMaximumAngle(float f)
Sets the end angle for the rotation interpolator

Parameters:
f - The end angle to what the interpolator has the object rotate to

getMaximumAngle

public float getMaximumAngle()
Returns the end angle for the rotation interpolator


setTarget

public void setTarget(TransformGroup transformgroup)
Sets the TransformGroup which has to be the target for the actual rotation interpolator

Parameters:
transformgroup - The target TransformGroup

getTarget

public TransformGroup getTarget()
Returns the TransformGroup which is target for the actual rotation interpolator


processStimulus

public void processStimulus(java.util.Enumeration enumeration)