|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interpolator nodes are designed for linear keyframed animation.
Interpolators are driven by an input key ranging [0..1] and produce corresponding piecewise-linear output functions.
This interface represents the X3D abstract node type X3DInterpolatorNode, which is defined as:
X3DInterpolatorNode : X3DChildNode {
SFFloat [in] set_fraction (-inf,inf)
MFFloat [in,out] key [] (-inf,inf)
MF [in,out] keyValue []
SFNode [in,out] metadata NULL [X3DMetadataObject]
[S|M]F [out] value_changed
}
| Method Summary | |
float |
getFraction()
Get the current value of the fraction field. |
float[] |
getKey()
Get current value of the key field. |
int |
getNumKey()
Get the number of valid keys defined for this interpolator. |
void |
setFraction(float fraction)
Set a new value for the fraction field. |
void |
setKey(float[] keys,
int numValid)
Set a new value for the key field. |
| Methods inherited from interface org.web3d.vrml.nodes.VRMLNodeType |
addNodeListener, getFieldValue, getMetadataObject, getRefCount, hasFieldChanged, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, sendRoute, setDEF, setFrameStateManager, setMetadataObject, setupFinished, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, updateRefCount |
| Methods inherited from interface org.web3d.vrml.lang.VRMLNode |
getFieldDeclaration, getFieldIndex, getNodeFieldIndices, getNumFields, getPrimaryType, getSecondaryType, getUserData, getVRMLNodeName, isDEF, setErrorReporter, setUserData, setVersion |
| Methods inherited from interface org.web3d.vrml.nodes.FrameStateListener |
allEventsComplete |
| Method Detail |
public void setFraction(float fraction)
fraction - The new value for fractionpublic float getFraction()
public void setKey(float[] keys,
int numValid)
null will
delete all key values.
keys - The new key valuesnumValid - The number of valid values to copy from the arraypublic float[] getKey()
public int getNumKey()
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||