public abstract class PathInterpolator extends TransformInterpolator
| Modifier and Type | Field and Description |
|---|---|
protected float |
currentInterpolationValue
This value is the ratio between knot values indicated by
the currentKnotIndex variable.
|
protected int |
currentKnotIndex
This value is the index of the current base knot value, as
determined by the alpha function.
|
private float[] |
knots |
axis, axisInverse, targetalpha, defaultWakeupCriterionALLOW_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_LOCALE_READ, ALLOW_PARENT_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTINGnodeHashtable, retained| Constructor and Description |
|---|
PathInterpolator()
Constructs a PathInterpolator node with a null alpha value and
a null target of TransformGroup
since Java 3D 1.3
|
PathInterpolator(Alpha alpha,
float[] knots)
Deprecated.
As of Java 3D version 1.3, replaced by
PathInterpolator(Alpha, TransformGroup, float[]) |
PathInterpolator(Alpha alpha,
TransformGroup target,
float[] knots)
Constructs a new PathInterpolator object that interpolates
between the knot values in the knots array.
|
PathInterpolator(Alpha alpha,
TransformGroup target,
Transform3D axisOfTransform,
float[] knots)
Constructs a new PathInterpolator object that interpolates
between the knot values in the knots array.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
computePathInterpolation()
Deprecated.
As of Java 3D version 1.3, replaced by
computePathInterpolation(float) |
protected void |
computePathInterpolation(float alphaValue)
Computes the base knot index and interpolation value
given the specified value of alpha and the knots[] array.
|
(package private) void |
duplicateAttributes(Node originalNode,
boolean forceDuplicate)
Copies all PathInterpolator information from
originalNode into
the current node. |
int |
getArrayLengths()
Retrieves the length of the knots array.
|
float |
getKnot(int index)
Retrieves the knot at the specified index.
|
void |
getKnots(float[] knots)
Copies the array of knots from this interpolator
into the specified array.
|
void |
setKnot(int index,
float knot)
Sets the knot at the specified index for this interpolator.
|
protected void |
setKnots(float[] knots)
Replaces the existing array of knot values with
the specified array.
|
computeTransform, getTarget, getTransformAxis, processStimulus, setTarget, setTransformAxis, updateNodeReferencesgetAlpha, initialize, setAlphacreateRetained, getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, wakeupOncheckDuplicateNode, checkForCycle, cloneNode, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickablecapabilityBitsEmpty, checkForLiveOrCompiled, clearCapability, clearCapabilityIsFrequent, clearLive, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getNamePrefix, getNodeComponent, getUserData, isCompiled, isLive, isLiveOrCompiled, setCapability, setCapabilityIsFrequent, setCompiled, setDefaultReadCapabilities, setLive, setName, setUserData, toStringprivate float[] knots
protected float currentInterpolationValue
computePathInterpolation(alphaValue) method from the subclass's
computeTransform() method. Then this variable will hold a valid
value which can be used in further calculations by the subclass.protected int currentKnotIndex
computePathInterpolation(alphaValue) method from the subclass's
computeTransform() method. Then this variable will hold a valid
value which can be used in further calculations by the subclass.PathInterpolator()
public PathInterpolator(Alpha alpha, float[] knots)
PathInterpolator(Alpha, TransformGroup, float[]) alpha - the alpha object for this interpolator.knots - an array of knot values that specify interpolation
points.public PathInterpolator(Alpha alpha, TransformGroup target, float[] knots)
alpha - the alpha object for this interpolator.target - the transformgroup node effected by this pathInterpolatorknots - an array of knot values that specify interpolation
points.public PathInterpolator(Alpha alpha, TransformGroup target, Transform3D axisOfTransform, float[] knots)
alpha - the alpha object for this interpolator.target - the transform node effected by this positionInterpolatoraxisOfTransform - the transform that defines the local coordinateknots - an array of knot values that specify interpolation
points.public int getArrayLengths()
public void setKnot(int index,
float knot)
index - the index to be changedknot - the new knot valuepublic float getKnot(int index)
index - the index of the value requestedprotected void setKnots(float[] knots)
knots - a new array of knot values that specify
interpolation points.public void getKnots(float[] knots)
knots - array that will receive the knots.protected void computePathInterpolation(float alphaValue)
alphaValue - alpha value between 0.0 and 1.0protected void computePathInterpolation()
computePathInterpolation(float)void duplicateAttributes(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.duplicateAttributes in class TransformInterpolatororiginalNode - 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)Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.