Class: X3DInterpolatorNode

X3D: 3.3
Component: Interpolation
Status:
experimental

x3dom.nodeTypes. X3DInterpolatorNode

The abstract node X3DInterpolatorNode forms the basis for all types of interpolators.

HTML Encoding and Default Values

<X3DInterpolatorNode key='[]' metadata='X3DMetadataObject' set_fraction='0' ></X3DInterpolatorNode>

Inheritance


Constructor

X3DInterpolatorNode(ctx)

Constructor for X3DInterpolatorNode

Parameters:
Name Type Argument Default Description
ctx Object <optional>
null context object, containing initial settings like namespace

Fields

These are the X3D / X3DOM fields of this node. Values should usually be received / set as strings via DOM functions (i.e., using setAttribute("myFieldName", "myFieldValue") and getAttribute("myFieldName")).
Name Type Default Value Range Inheritance Standard Description
key MFFloat [] The key field contains the list of key times, the keyValue field contains values for the target field, one complete set of values for each key. Interpolator nodes containing no keys in the key field shall not produce any events. However, an input event that replaces an empty key field with one that contains keys will cause the interpolator node to produce events the next time that a set_fraction event is received.
metadata SFNode X3DMetadataObject X3DChildNode Field to add metadata information
set_fraction SFFloat 0 The set_fraction inputOnly field receives an SFFloat event and causes the interpolator node function to evaluate, resulting in a value_changed output event of the specified type with the same timestamp as the set_fraction event.