shout3d.core
Class FractionRemapper
java.lang.Object
|
+--shout3d.core.Node
|
+--shout3d.core.FractionRemapper
- public class FractionRemapper
- extends Node
- implements FieldObserver
FractionRemapper maps a fraction to play a range of keyframes of
connected Interpolators.
It takes as input an inFraction from a TimeSensor in the range [0,1].
If isPunchedIn is false (the default) the outFraction is remapped to play
the specified range of keyframes over the entire animation interval.
If isPunchedIn is true, then outFraction is not remapped, however it is only
passed through to the interpolator during the specified subsection of the
keyframes.
Method Summary |
void |
onFieldChange(Field theField,
java.lang.Object userData)
Subclasses must call this within their own onFieldChange() method. |
void |
updateOutFraction()
Call this to update the outFraction if necessary |
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 |
inFraction
public final FloatField inFraction
timeScale
public final FloatField timeScale
startKey
public final FloatField startKey
endKey
public final FloatField endKey
isPunchedIn
public final BooleanField isPunchedIn
outFraction
public final FloatField outFraction
FractionRemapper
public FractionRemapper()
- Constructs a default FractionRemapper
onFieldChange
public void onFieldChange(Field theField,
java.lang.Object userData)
- Subclasses must call this within their own onFieldChange() method.
- Specified by:
- onFieldChange in interface FieldObserver
updateOutFraction
public void updateOutFraction()
- Call this to update the outFraction if necessary