8 #ifndef META_OCEAN_SCENEDESCRIPTION_SDX_X3D_X3D_INTERPOLATOR_NODE_H
9 #define META_OCEAN_SCENEDESCRIPTION_SDX_X3D_X3D_INTERPOLATOR_NODE_H
19 namespace SceneDescription
44 typedef std::map<Scalar, IndexPair32>
KeyMap;
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
This class implements an abstract x3d child node.
Definition: X3DChildNode.h:31
This class implements an abstract x3d interpolator node object.
Definition: X3DInterpolatorNode.h:33
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
std::pair< size_t, size_t > IndexPair32
Definition of a pair holding two key value indices.
Definition: X3DInterpolatorNode.h:39
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.
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:36
float Scalar
Definition of a scalar type.
Definition: Math.h:128
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15