8#ifndef META_OCEAN_SCENEDESCRIPTION_SDX_X3D_X3D_INTERPOLATOR_NODE_H
9#define META_OCEAN_SCENEDESCRIPTION_SDX_X3D_X3D_INTERPOLATOR_NODE_H
44 using KeyMap = std::map<Scalar, IndexPair32>;
This class is the base class for all scene description fields.
Definition Field.h:36
This class implements a node specification object.
Definition scenedescription/Node.h:77
const Field & field(const std::string &fieldName) const
Returns the field base of a specified (standard) field.
X3DChildNode(const SDXEnvironment *environment)
Creates a new x3d child node.
MultiFloat key_
Key field.
Definition X3DInterpolatorNode.h:96
void registerFields(NodeSpecification &specification)
Registers the fields of this node.
virtual void onInterpolate(const size_t leftIndex, const size_t rightIndex, const Scalar interpolationFactor, const Timestamp eventTimestamp)=0
Event function to interpolate between two values.
KeyMap keyMap_
Map mapping interpolation keys to interpolation value indices.
Definition X3DInterpolatorNode.h:99
bool onFieldChanging(const std::string &fieldName, const Field &field) override
Explicit changing event function for node fields.
std::map< Scalar, IndexPair32 > KeyMap
Definition of a map mapping keys to key value index pairs.
Definition X3DInterpolatorNode.h:44
virtual void onSingleValue(const size_t index, const Timestamp eventTimestamp)=0
Event function for single value 'interpolates'.
void onInitialize(const Rendering::SceneRef &scene, const Timestamp timestamp) override
Event function to inform the node that it has been initialized and can apply all internal values to c...
X3DInterpolatorNode(const SDXEnvironment *environment)
Creates a new abstract x3d interpolator node.
std::pair< size_t, size_t > IndexPair32
Definition of a pair holding two key value indices.
Definition X3DInterpolatorNode.h:39
SingleFloat setFraction_
Set_fraction field.
Definition X3DInterpolatorNode.h:93
This class implements a node environment container.
Definition SDXNode.h:62
This class implements a timestamp.
Definition Timestamp.h:64
float Scalar
Definition of a scalar type.
Definition Math.h:129
SmartObjectRef< Scene > SceneRef
Definition of a smart object reference holding a scene node.
Definition rendering/Scene.h:29
Field0D< Scalar > SingleFloat
Definition of a single field with float value.
Definition Field0D.h:41
Field1D< Scalar > MultiFloat
Definition of a multi field with float values.
Definition Field1D.h:42
Namespace of the S(scene)D(escription)X X3D SceneDescription library.
Definition Appearance.h:26
Definition Appearance.h:23
Namespace of the SceneDescription library.
Definition DynamicNode.h:21
The namespace covering the entire Ocean framework.
Definition Accessor.h:15