KBSplinePathInterpolator behavior. This class defines the base class for
all Kochanek-Bartels (also known as TCB or Tension-Continuity-Bias)
Spline Path Interpolators.
since: Java3D 1.2
Field Summary
protected float
currentU This value is the distance between knots
value which can be used in further calculations by the subclass.
KBSplinePathInterpolator(Alpha alpha, TransformGroup target, KBKeyFrame keys) Constructs a new KBSplinePathInterpolator object that interpolates
between keyframes with specified alpha, target and an default
axisOfTranform set to identity.
It takes at least two key frames.
public
KBSplinePathInterpolator(Alpha alpha, TransformGroup target, Transform3D axisOfTransform, KBKeyFrame keys) Constructs a new KBSplinePathInterpolator object that interpolates
between keyframes with specified alpha, target and axisOfTransform.
It takes at least two key frames.
Constructs a new KBSplinePathInterpolator object that interpolates
between keyframes with specified alpha, target and an default
axisOfTranform set to identity.
It takes at least two key frames. 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. Once this constructor has all the valid key frames
it creates its own list of key fames that duplicates the first key frame
at the beginning of the list and the last key frame at the end of the
list.
Parameters: alpha - the alpha object for this interpolator Parameters: target - the TransformGroup node affected by this interpolator Parameters: keys - an array of KBKeyFrame. Requires at least two key frames. since: Java 3D 1.3
Constructs a new KBSplinePathInterpolator object that interpolates
between keyframes with specified alpha, target and axisOfTransform.
It takes at least two key frames. 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. Once this constructor has all the valid key frames
it creates its own list of key fames that duplicates the first key frame
at the beginning of the list and the last key frame at the end of the
list.
Parameters: alpha - the alpha object for this interpolator Parameters: target - the TransformGroup node affected by this interpolator Parameters: axisOfTransform - the transform that defines the local coordinate Parameters: keys - an array of KBKeyFrame. Requires at least two key frames since: Java 3D 1.3
This method computes the bounding knot indices and interpolation value
"CurrentU" given the current value of the knots[] array and the
specified alpha value
Parameters: alphaValue - alpha value between 0.0 and 1.0 since: Java 3D 1.3
duplicateNode
public void duplicateNode(Node originalNode, boolean forceDuplicate)(Code)
Copies all KBSplinePathInterpolator 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
This method retrieves the key frame at the specified index.
Parameters: index - the index of the key frame requested the key frame at the associated index
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 since: Java 3D 1.3