| java.lang.Object javax.media.j3d.SceneGraphObject javax.media.j3d.Node javax.media.j3d.Leaf javax.media.j3d.Behavior javax.media.j3d.Interpolator javax.media.j3d.TransformInterpolator javax.media.j3d.RotationInterpolator
RotationInterpolator | public class RotationInterpolator extends TransformInterpolator (Code) | | Rotation interpolator behavior. This class defines a behavior
that modifies the rotational component of its target TransformGroup
by linearly interpolating between a pair of specified angles
(using the value generated by the specified Alpha object).
The interpolated angle is used to generate a rotation transform
about the local Y-axis of this interpolator.
|
Constructor Summary | |
| RotationInterpolator() | public | RotationInterpolator(Alpha alpha, TransformGroup target) Constructs a trivial rotation interpolator with a specified target,
an default axisOfTranform set to identity, a minimum angle of 0.0f, and
a maximum angle of 2*pi radians. | public | RotationInterpolator(Alpha alpha, TransformGroup target, Transform3D axisOfTransform, float minimumAngle, float maximumAngle) Constructs a new rotation interpolator that varies the target
transform node's rotational component.
Parameters: alpha - the alpha generator to use in the rotation computation Parameters: target - the TransformGroup node affected by this interpolator Parameters: axisOfTransform - the transform that defines the local coordinatesystem in which this interpolator operates. |
Method Summary | |
public Node | cloneNode(boolean forceDuplicate) Used to create a new instance of the node. | public void | computeTransform(float alphaValue, Transform3D transform) Computes the new transform for this interpolator for a given
alpha value. | void | duplicateAttributes(Node originalNode, boolean forceDuplicate) Copies all RotationInterpolator information from
originalNode into
the current node. | public Transform3D | getAxisOfRotation() | public float | getMaximumAngle() This method retrieves this interpolator's maximumAngle, in
radians. | public float | getMinimumAngle() This method retrieves this interpolator's minimumAngle, in
radians. | public void | setAxisOfRotation(Transform3D axisOfRotation) | public void | setMaximumAngle(float angle) This method sets the maximumAngle for this interpolator, in
radians. | public void | setMinimumAngle(float angle) This method sets the minimumAngle for this interpolator, in
radians. |
maximumAngle | float maximumAngle(Code) | | |
minimumAngle | float minimumAngle(Code) | | |
RotationInterpolator | RotationInterpolator()(Code) | | |
RotationInterpolator | public RotationInterpolator(Alpha alpha, TransformGroup target)(Code) | | Constructs a trivial rotation interpolator with a specified target,
an default axisOfTranform set to identity, a minimum angle of 0.0f, and
a maximum angle of 2*pi radians.
Parameters: alpha - The alpha object for this Interpolator Parameters: target - The target for this rotation Interpolator |
RotationInterpolator | public RotationInterpolator(Alpha alpha, TransformGroup target, Transform3D axisOfTransform, float minimumAngle, float maximumAngle)(Code) | | Constructs a new rotation interpolator that varies the target
transform node's rotational component.
Parameters: alpha - the alpha generator to use in the rotation computation Parameters: target - the TransformGroup node affected by this interpolator Parameters: axisOfTransform - the transform that defines the local coordinatesystem in which this interpolator operates. The rotation is doneabout the Y-axis of this local coordinate system. Parameters: minimumAngle - the starting angle in radians Parameters: maximumAngle - the ending angle in radians |
cloneNode | public Node cloneNode(boolean forceDuplicate)(Code) | | Used to create a new instance of the node. This routine is called
by cloneTree to duplicate the current node.
Parameters: forceDuplicate - when set to true , causes theduplicateOnCloneTree flag to be ignored. Whenfalse , the value of each node'sduplicateOnCloneTree variable determines whetherNodeComponent data is duplicated or copied. See Also: Node.cloneTree See Also: Node.cloneNode See Also: Node.duplicateNode See Also: NodeComponent.setDuplicateOnCloneTree |
computeTransform | public void computeTransform(float alphaValue, Transform3D transform)(Code) | | Computes the new transform for this interpolator for a given
alpha value.
Parameters: alphaValue - alpha value between 0.0 and 1.0 Parameters: transform - object that receives the computed transform forthe specified alpha value since: Java 3D 1.3 |
duplicateAttributes | void duplicateAttributes(Node originalNode, boolean forceDuplicate)(Code) | | Copies all RotationInterpolator information from
originalNode into
the current node. This method is called from the
cloneNode method which is, in turn, called by the
cloneTree method.
Parameters: originalNode - the original node to duplicate. Parameters: forceDuplicate - when set to true , causes theduplicateOnCloneTree flag to be ignored. Whenfalse , the value of each node'sduplicateOnCloneTree variable determines whetherNodeComponent data is duplicated or copied. exception: RestrictedAccessException - if this object is part of a liveor compiled scenegraph. See Also: Node.duplicateNode See Also: Node.cloneTree See Also: NodeComponent.setDuplicateOnCloneTree |
getMaximumAngle | public float getMaximumAngle()(Code) | | This method retrieves this interpolator's maximumAngle, in
radians.
the interpolator's maximal angle value |
getMinimumAngle | public float getMinimumAngle()(Code) | | This method retrieves this interpolator's minimumAngle, in
radians.
the interpolator's minimal angle value |
setMaximumAngle | public void setMaximumAngle(float angle)(Code) | | This method sets the maximumAngle for this interpolator, in
radians.
Parameters: angle - the new maximal angle value |
setMinimumAngle | public void setMinimumAngle(float angle)(Code) | | This method sets the minimumAngle for this interpolator, in
radians.
Parameters: angle - the new minimal angle |
|
|