| 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.PositionInterpolator
PositionInterpolator | public class PositionInterpolator extends TransformInterpolator (Code) | | Position interpolator behavior. This class defines a behavior
that modifies the translational component of its target
TransformGroup by linearly interpolating between a pair of
specified positions (using the value generated by the
specified Alpha object). The interpolated position is used
to generate a translation transform along the local X-axis
of this interpolator.
|
Constructor Summary | |
| PositionInterpolator() | public | PositionInterpolator(Alpha alpha, TransformGroup target) Constructs a trivial position interpolator with a specified target,
an axisOfTranslation set to Identity, a startPosition of 0.0f, and
an endPosition of 1.0f. | public | PositionInterpolator(Alpha alpha, TransformGroup target, Transform3D axisOfTransform, float startPosition, float endPosition) Constructs a new position interpolator that varies the target
TransformGroup's translational component (startPosition and endPosition).
Parameters: alpha - the alpha object for this interpolator Parameters: target - the transformgroup node effected by this positionInterpolator Parameters: axisOfTransform - the transform that defines the local coordinatesystem in which this interpolator operates. |
endPosition | float endPosition(Code) | | |
startPosition | float startPosition(Code) | | |
PositionInterpolator | PositionInterpolator()(Code) | | |
PositionInterpolator | public PositionInterpolator(Alpha alpha, TransformGroup target)(Code) | | Constructs a trivial position interpolator with a specified target,
an axisOfTranslation set to Identity, a startPosition of 0.0f, and
an endPosition of 1.0f.
Parameters: alpha - The alpha object for this Interpolator Parameters: target - The target for this position Interpolator |
PositionInterpolator | public PositionInterpolator(Alpha alpha, TransformGroup target, Transform3D axisOfTransform, float startPosition, float endPosition)(Code) | | Constructs a new position interpolator that varies the target
TransformGroup's translational component (startPosition and endPosition).
Parameters: alpha - the alpha object for this interpolator Parameters: target - the transformgroup node effected by this positionInterpolator Parameters: axisOfTransform - the transform that defines the local coordinatesystem in which this interpolator operates. The translation isdone along the X-axis of this local coordinate system. Parameters: startPosition - the starting position Parameters: endPosition - the ending position |
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 PositionInterpolator 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 |
getEndPosition | public float getEndPosition()(Code) | | This method retrieves this interpolator's endPosition.
the interpolator's end position vslue |
getStartPosition | public float getStartPosition()(Code) | | This method retrieves this interpolator's startPosition.
the interpolator's start position value |
setAxisOfTranslation | public void setAxisOfTranslation(Transform3D axisOfTranslation)(Code) | | |
setEndPosition | public void setEndPosition(float position)(Code) | | This method sets the endPosition for this interpolator.
Parameters: position - The new end position |
setStartPosition | public void setStartPosition(float position)(Code) | | This method sets the startPosition for this interpolator.
Parameters: position - The new start position |
|
|