|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
TCBSplinePathInterpolator behavior. This class defines the base class for all TCB (Kochanek-Bartels) Spline Path Interpolators.
Field Summary | |
protected float |
currentU
This value is the distance between knots value which can be used in further calculations by the subclass. |
protected TCBKeyFrame[] |
keyFrames
An array of KBKeyFrame for interpolator |
protected int |
lowerKnot
The lower knot |
protected int |
upperKnot
The upper knot |
Fields inherited from class javax.media.j3d.TransformInterpolator |
axis, axisInverse, target |
Fields inherited from class javax.media.j3d.Interpolator |
defaultWakeupCriterion |
Fields inherited from class javax.media.j3d.Node |
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING |
Constructor Summary | |
TCBSplinePathInterpolator(Alpha alpha,
TCBKeyFrame[] keys)
Deprecated. As of Java 3D version 1.3, replaced by TCBSplinePathInterpolator(Alpha, TransformGroup, TCBKeyFrame[]) |
|
TCBSplinePathInterpolator(Alpha alpha,
TransformGroup target,
TCBKeyFrame[] keys)
Constructs a new TCBSplinePathInterpolator object that interpolates between keyframes with specified alpha, target and default axisOfTransform set to identity. |
|
TCBSplinePathInterpolator(Alpha alpha,
TransformGroup target,
Transform3D axisOfTransform,
TCBKeyFrame[] keys)
Constructs a new TCBSplinePathInterpolator object that interpolates between keyframes with specified alpha, target and axisOfTransform. |
Method Summary | |
protected void |
computePathInterpolation()
Deprecated. As of Java 3D version 1.3, replaced by computePathInterpolation(float) |
protected void |
computePathInterpolation(float alphaValue)
This method computes the bounding knot indices and interpolation value "CurrentU" given the specified value of alpha and the knots[] array. |
void |
duplicateNode(Node originalNode,
boolean forceDuplicate)
Copies all TCBSplinePathInterpolator information from originalNode into
the current node. |
int |
getArrayLength()
This method retrieves the length of the key frame array. |
TCBKeyFrame |
getKeyFrame(int index)
This method retrieves the key frame at the specified index. |
Methods inherited from class javax.media.j3d.TransformInterpolator |
computeTransform, getTarget, getTransformAxis, processStimulus, setTarget, setTransformAxis, updateNodeReferences |
Methods inherited from class javax.media.j3d.Interpolator |
getAlpha, initialize, setAlpha |
Methods inherited from class javax.media.j3d.Behavior |
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, wakeupOn |
Methods inherited from class javax.media.j3d.Node |
cloneNode, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, getBounds, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable |
Methods inherited from class javax.media.j3d.SceneGraphObject |
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setUserData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected TCBKeyFrame[] keyFrames
protected float currentU
protected int lowerKnot
protected int upperKnot
Constructor Detail |
public TCBSplinePathInterpolator(Alpha alpha, TCBKeyFrame[] keys)
TCBSplinePathInterpolator(Alpha, TransformGroup, TCBKeyFrame[])
public TCBSplinePathInterpolator(Alpha alpha, TransformGroup target, TCBKeyFrame[] keys)
alpha
- the alpha object for this interpolatortarget
- the TransformGroup node effected by this TCBSplinePathInterpolatorkeys
- an array of TCBKeyFrame. Requires at least two key frames.public TCBSplinePathInterpolator(Alpha alpha, TransformGroup target, Transform3D axisOfTransform, TCBKeyFrame[] keys)
alpha
- the alpha object for this interpolatortarget
- the TransformGroup node effected by this TCBSplinePathInterpolatoraxisOfTransform
- the transform that defines the local coordinatekeys
- an array of TCBKeyFrame. Requires at least two key frames.Method Detail |
public int getArrayLength()
public TCBKeyFrame getKeyFrame(int index)
index
- the index of the key frame requested
protected void computePathInterpolation(float alphaValue)
alphaValue
- alpha value between 0.0 and 1.0protected void computePathInterpolation()
computePathInterpolation(float)
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 Node
originalNode
- 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.j3d.Node, boolean)
,
Node.cloneTree()
,
NodeComponent.setDuplicateOnCloneTree(boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |