| 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 com.sun.j3d.utils.behaviors.interpolators.TCBSplinePathInterpolator com.sun.j3d.utils.behaviors.interpolators.RotPosScaleTCBSplinePathInterpolator
RotPosScaleTCBSplinePathInterpolator | public class RotPosScaleTCBSplinePathInterpolator extends TCBSplinePathInterpolator (Code) | | RotPosScaleTCBSplinePathInterpolator behavior. This class defines a
behavior that varies the rotational, translational, and scale components
of its target TransformGroup by using the Kochanek-Bartels cubic spline
interpolation to interpolate among a series of key frames
(using the value generated by the specified Alpha object). The
interpolated position, orientation, and scale are used to generate
a transform in the local coordinate system of this interpolator.
since: Java3D 1.1 |
currentSegmentIndex | int currentSegmentIndex(Code) | | |
numSegments | int numSegments(Code) | | |
RotPosScaleTCBSplinePathInterpolator | RotPosScaleTCBSplinePathInterpolator()(Code) | | |
RotPosScaleTCBSplinePathInterpolator | public RotPosScaleTCBSplinePathInterpolator(Alpha alpha, TransformGroup target, Transform3D axisOfTransform, TCBKeyFrame keys)(Code) | | Constructs a new RotPosScaleTCBSplinePathInterpolator object that
varies the rotation, translation, and scale of the target
TransformGroup's transform. At least 2 key frames are required for
this interpolator. The first key
frame's knot must have a value of 0.0 and the last knot must have a
value of 1.0. An intermediate key frame with index k must have a
knot value strictly greater than the knot value of a key frame with
index less than k.
Parameters: alpha - the alpha object for this interpolator Parameters: target - the TransformGroup node affected by this interpolator Parameters: axisOfTransform - the transform that specifies the localcoordinate system in which this interpolator operates. Parameters: keys - an array of key frames that defien the motion path |
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 |
duplicateNode | public void duplicateNode(Node originalNode, boolean forceDuplicate)(Code) | | Copies RotPosScaleTCBSplinePathInterpolator 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 |
setAxisOfRotPosScale | public void setAxisOfRotPosScale(Transform3D axisOfRotPosScale)(Code) | | |
|
|