| |
|
| java.lang.Object com.sun.perseus.model.FloatRefValues
FloatRefValues | public class FloatRefValues implements RefValues(Code) | | version: $Id: FloatRefValues.java,v 1.3 2006/04/21 06:37:00 st125089 Exp $ |
Field Summary | |
float | length | float[] | segLength Used to store the length of each segment. | FloatSegment[] | segments This RefValues FloatSegments. | float[][] | w A working array to return a value from the compute method. |
Method Summary | |
public Object[] | compute(int si, float p) Computes the value for the input interpolated values. | public int | getComponents() FloatRefValues only have one component. | public float | getLength() Computes the length of the RefValues. | public float | getLength(int si) | public Segment | getSegment(int i) Parameters: i - requested segment index. | public int | getSegments() | public void | initialize() Should be called after the RefValue's configuration is complete
to give the implementation a chance to initialize
internal data and cache values. | public void | makeDiscrete() Adds a new time segment so accomodate for discreet behavior.
If there is only one segment for discreet animations, the
last value is never shown. | public String | toString() Debug helper. |
length | float length(Code) | | Used to store the length of this RefValues
|
segLength | float[] segLength(Code) | | Used to store the length of each segment.
|
w | float[][] w(Code) | | A working array to return a value from the compute method.
|
compute | public Object[] compute(int si, float p)(Code) | | Computes the value for the input interpolated values.
There should be as many entries in the return array as there
are components in the RefValues.
Parameters: si - the current segment index Parameters: p - the current penetration |
getComponents | public int getComponents()(Code) | | FloatRefValues only have one component. This returns the number of
components in the start value of the first segment.
the number of components. There is an array of float for each component. |
getLength | public float getLength()(Code) | | Computes the length of the RefValues. This is meant for paced timing
computation.
the total length of this FloatRefValues. The distance is definedas the average distance between r |
getLength | public float getLength(int si)(Code) | | Computes the length of segment at index si
Parameters: si - the segment index. |
getSegment | public Segment getSegment(int i)(Code) | | Parameters: i - requested segment index. Segment at index i |
getSegments | public int getSegments()(Code) | | the number of segments in refValues |
initialize | public void initialize()(Code) | | Should be called after the RefValue's configuration is complete
to give the implementation a chance to initialize
internal data and cache values.
|
makeDiscrete | public void makeDiscrete()(Code) | | Adds a new time segment so accomodate for discreet behavior.
If there is only one segment for discreet animations, the
last value is never shown. To accomodate for that, this
method should add a segment to the RefValues so that the
last animation value is shown during the last value interval
of a discreet animation.
|
|
|
|