| javax.media.j3d.Interpolator com.sun.j3d.loaders.lw3d.FloatValueInterpolator
All known Subclasses: com.sun.j3d.loaders.lw3d.SwitchPathInterpolator, com.sun.j3d.loaders.lw3d.LightIntensityPathInterpolator,
FloatValueInterpolator | abstract class FloatValueInterpolator extends Interpolator (Code) | | This class acts as an interpolator between values specified in a
floating point array, based on knot values (keyframes) specified in a
knots array.
|
Method Summary | |
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. | float | getValue(int index) This method retrieves the value at the specified index. | void | setValue(int index, float value) This method sets the value at the specified index for
this interpolator. |
currentInterpolationRatio | protected float currentInterpolationRatio(Code) | | |
currentKnotIndex | protected int currentKnotIndex(Code) | | |
currentValue | protected float currentValue(Code) | | |
values | protected float values(Code) | | |
FloatValueInterpolator | FloatValueInterpolator(Alpha alpha, float k, float v)(Code) | | Constructs a new FloatValueInterpolator object.
Parameters: alpha - the alpha object for this interpolator Parameters: knots - an array of knot values that specify a spline |
computePathInterpolation | protected void computePathInterpolation()(Code) | | 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.
If the index is 0 and there will be no interpolation, both the
index variable and the interpolation variable are set to 0.
Otherwise, currentKnotIndex is set to the lower index of the
two bounding knot points and the currentInterpolationRatio
variable is set to the ratio of the alpha value between these
two bounding knot points.
|
getValue | float getValue(int index)(Code) | | This method retrieves the value at the specified index.
Parameters: index - the index of the value requested the interpolator's value at the index |
setValue | void setValue(int index, float value)(Code) | | This method sets the value at the specified index for
this interpolator.
Parameters: index - the index to be changed Parameters: position - the new value at index |
|
|