| 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.KBSplinePathInterpolator com.sun.j3d.utils.behaviors.interpolators.KBRotPosScaleSplinePathInterpolator
KBRotPosScaleSplinePathInterpolator | public class KBRotPosScaleSplinePathInterpolator extends KBSplinePathInterpolator (Code) | | KBRotPosScaleSplinePathInterpolator 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.
|
currentSegmentIndex | int currentSegmentIndex(Code) | | |
iHeadingiPitchiBank | float iHeadingiPitchiBank(Code) | | |
numSegments | int numSegments(Code) | | |
KBRotPosScaleSplinePathInterpolator | KBRotPosScaleSplinePathInterpolator()(Code) | | |
KBRotPosScaleSplinePathInterpolator | public KBRotPosScaleSplinePathInterpolator(Alpha alpha, TransformGroup target, Transform3D axisOfTransform, KBKeyFrame keys)(Code) | | Constructs a new KBRotPosScaleSplinePathInterpolator 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) | | Copies KBRotPosScaleSplinePathInterpolator 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: 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 |
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 KBRotPosScaleSplinePathInterpolator 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) | | |
setKeyFrame | public void setKeyFrame(int index, KBKeyFrame keyFrame)(Code) | | Set the key frame at the specified index to keyFrame
Parameters: index - Index of the key frame to change Parameters: keyFrame - The new key frame |
setKeyFrames | public void setKeyFrames(KBKeyFrame[] keyFrame)(Code) | | Set all the key frames
Parameters: keyFrame - The new key frames |
|
|