shout3d.core
Class CoordinateNodeInterpolator

java.lang.Object
  |
  +--shout3d.core.Node
        |
        +--shout3d.core.Interpolator
              |
              +--shout3d.core.KeyframeInterpolator
                    |
                    +--shout3d.core.CoordinateNodeInterpolator

public class CoordinateNodeInterpolator
extends KeyframeInterpolator

A Coordinate Node Interpolator keyValues are a list of Coordinate nodes. All the nodes must have point fields of the same length, or values will not be generated. When the fraction changes, the point fields of the two Coordinate nodes straddling the fraction (or 1, if the fraction falls on a key) are interpololated. The output value is a float array of the same dimension as the point fields of the Coordinate nodes.


Field Summary
 NodeArrayField keyValue
           
 FloatArrayField value
           
 
Fields inherited from class shout3d.core.KeyframeInterpolator
key, timeScale
 
Fields inherited from class shout3d.core.Interpolator
fraction
 
Constructor Summary
CoordinateNodeInterpolator()
          Constructs a default CoordinateNodeInterpolator
 
Method Summary
 void update()
          Call this to update the value field's value based on the current value of the fraction field).
 
Methods inherited from class shout3d.core.KeyframeInterpolator
getKeyIndexBeforeOrAt, getRampedKey
 
Methods inherited from class shout3d.core.Interpolator
onFieldChange
 
Methods inherited from class shout3d.core.Node
cleanUp, getDEFName, getField, getFieldByIndex, getFieldName, getNumFields, getTypeName, getViewer, isOfType, setDEFName, setViewer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keyValue

public final NodeArrayField keyValue

value

public final FloatArrayField value
Constructor Detail

CoordinateNodeInterpolator

public CoordinateNodeInterpolator()
Constructs a default CoordinateNodeInterpolator
Method Detail

update

public void update()
Call this to update the value field's value based on the current value of the fraction field). This is automatically called by the viewer, but you can call this at any time to force new output.
Overrides:
update in class Interpolator