|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.media.ding3d.SceneGraphObject
javax.media.ding3d.Node
javax.media.ding3d.Leaf
javax.media.ding3d.Behavior
javax.media.ding3d.Interpolator
javax.media.ding3d.TransformInterpolator
javax.media.ding3d.utils.behaviors.interpolators.KBSplinePathInterpolator
javax.media.ding3d.utils.behaviors.interpolators.KBRotPosScaleSplinePathInterpolator
public class KBRotPosScaleSplinePathInterpolator
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.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
KBRotPosScaleSplinePathInterpolator(Alpha alpha,
TransformGroup target,
Transform3D axisOfTransform,
KBKeyFrame[] keys)
Constructs a new KBRotPosScaleSplinePathInterpolator object that varies the rotation, translation, and scale of the target TransformGroup's transform. |
|
| Method Summary | |
|---|---|
Node |
cloneNode(boolean forceDuplicate)
Copies KBRotPosScaleSplinePathInterpolator information from originalNode into
the current node. |
void |
computeTransform(float alphaValue,
Transform3D transform)
Computes the new transform for this interpolator for a given alpha value. |
void |
duplicateNode(Node originalNode,
boolean forceDuplicate)
Copies KBRotPosScaleSplinePathInterpolator information from originalNode into
the current node. |
Transform3D |
getAxisOfRotPosScale()
Deprecated. As of Java 3D version 1.3, replaced by TransformInterpolator.getTransformAxis() |
void |
setAxisOfRotPosScale(Transform3D axisOfRotPosScale)
Deprecated. As of Java 3D version 1.3, replaced by TransformInterpolator.setTransformAxis(Transform3D) |
void |
setKeyFrame(int index,
KBKeyFrame keyFrame)
Set the key frame at the specified index to keyFrame |
void |
setKeyFrames(KBKeyFrame[] keyFrame)
Set all the key frames |
| Methods inherited from class javax.media.ding3d.utils.behaviors.interpolators.KBSplinePathInterpolator |
|---|
getArrayLength, getKeyFrame |
| Methods inherited from class javax.media.ding3d.TransformInterpolator |
|---|
getTarget, getTransformAxis, processStimulus, setTarget, setTransformAxis, updateNodeReferences |
| Methods inherited from class javax.media.ding3d.Interpolator |
|---|
getAlpha, initialize, setAlpha |
| Methods inherited from class javax.media.ding3d.Behavior |
|---|
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, postId, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval |
| Methods inherited from class javax.media.ding3d.Node |
|---|
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, getBounds, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable |
| Methods inherited from class javax.media.ding3d.SceneGraphObject |
|---|
clearCapability, clearCapabilityIsFrequent, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public KBRotPosScaleSplinePathInterpolator(Alpha alpha,
TransformGroup target,
Transform3D axisOfTransform,
KBKeyFrame[] keys)
alpha - the alpha object for this interpolatortarget - the TransformGroup node affected by this interpolatoraxisOfTransform - the transform that specifies the local
coordinate system in which this interpolator operates.keys - an array of key frames that defien the motion path| Method Detail |
|---|
public void setAxisOfRotPosScale(Transform3D axisOfRotPosScale)
TransformInterpolator.setTransformAxis(Transform3D)
public Transform3D getAxisOfRotPosScale()
TransformInterpolator.getTransformAxis()
public void setKeyFrame(int index,
KBKeyFrame keyFrame)
keyFrame
setKeyFrame in class KBSplinePathInterpolatorindex - Index of the key frame to changekeyFrame - The new key framepublic void setKeyFrames(KBKeyFrame[] keyFrame)
setKeyFrames in class KBSplinePathInterpolatorkeyFrame - The new key frames
public void computeTransform(float alphaValue,
Transform3D transform)
computeTransform in class TransformInterpolatoralphaValue - alpha value between 0.0 and 1.0transform - object that receives the computed transform for
the specified alpha valuepublic Node cloneNode(boolean forceDuplicate)
originalNode into
the current node. This method is called from the
cloneNode method which is, in turn, called by the
cloneTree method.
cloneNode in class NodeforceDuplicate - when set to true, causes the
duplicateOnCloneTree flag to be ignored. When
false, the value of each node's
duplicateOnCloneTree variable determines whether
NodeComponent data is duplicated or copied.
RestrictedAccessException - if this object is part of a live
or compiled scenegraph.Node.duplicateNode(javax.media.ding3d.Node, boolean),
Node.cloneTree(),
NodeComponent.setDuplicateOnCloneTree(boolean)
public void duplicateNode(Node originalNode,
boolean forceDuplicate)
originalNode into
the current node. This method is called from the
cloneNode method which is, in turn, called by the
cloneTree method.
duplicateNode in class KBSplinePathInterpolatororiginalNode - the original node to duplicate.forceDuplicate - when set to true, causes the
duplicateOnCloneTree flag to be ignored. When
false, the value of each node's
duplicateOnCloneTree variable determines whether
NodeComponent data is duplicated or copied.
RestrictedAccessException - if this object is part of a live
or compiled scenegraph.Node.duplicateNode(javax.media.ding3d.Node, boolean),
Node.cloneTree(),
NodeComponent.setDuplicateOnCloneTree(boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||