abstract class FloatValueInterpolator extends Interpolator
| Modifier and Type | Field and Description |
|---|---|
protected float |
currentInterpolationRatio |
protected int |
currentKnotIndex |
protected float |
currentValue |
private float[] |
knots |
private int |
knotsLength |
protected float[] |
values |
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_REPORTING| Constructor and Description |
|---|
FloatValueInterpolator(Alpha alpha,
float[] k,
float[] v)
Constructs a new FloatValueInterpolator object.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
computePathInterpolation()
This method computes the bounding knot indices and interpolation value
"currentValue" given the current value of alpha, the knots[] array and
the array of values.
|
(package private) float |
getValue(int index)
This method retrieves the value at the specified index.
|
(package private) void |
setValue(int index,
float value)
This method sets the value at the specified index for
this interpolator.
|
getAlpha, initialize, setAlphagetEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, processStimulus, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, updateNodeReferences, wakeupOncloneNode, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickableclearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toStringprivate float[] knots
private int knotsLength
protected int currentKnotIndex
protected float currentInterpolationRatio
protected float[] values
protected float currentValue
FloatValueInterpolator(Alpha alpha, float[] k, float[] v)
alpha - the alpha object for this interpolatorknots - an array of knot values that specify a splinevoid setValue(int index,
float value)
index - the index to be changedposition - the new value at indexfloat getValue(int index)
index - the index of the value requestedprotected void computePathInterpolation()
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.