8 #ifndef META_OCEAN_SCENEDESCRIPTION_SDX_X3D_X3D_LIGHT_NODE_H
9 #define META_OCEAN_SCENEDESCRIPTION_SDX_X3D_X3D_LIGHT_NODE_H
19 namespace SceneDescription
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 light node.
Definition: X3DLightNode.h:35
X3DLightNode(const SDXEnvironment *environment)
Creates an abstract x3d light node.
~X3DLightNode() override
Destructs a light node.
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...
void unregisterLight(const bool wasGlobal)
Unregisters this light at the renering objects.
SingleFloat ambientIntensity_
AmbientIntensity field.
Definition: X3DLightNode.h:94
void registerLight(const bool willBeGlobal)
Registers this light at the renering objects.
SingleColor color_
Color field.
Definition: X3DLightNode.h:97
SingleBool on_
On field.
Definition: X3DLightNode.h:106
void onUpdate(const Rendering::ViewRef &view, const Timestamp timestamp) override
Update event function.
SingleBool global_
Global field.
Definition: X3DLightNode.h:100
SingleFloat intensity_
Intensity field.
Definition: X3DLightNode.h:103
void onFieldChanged(const std::string &fieldName) override
Event function to inform the node about a changed field.
void registerFields(NodeSpecification &specification)
Registers the fields of this node.
virtual void onGlobalLight(const HomogenousMatrix4 &world_T_light)=0
Event function to update the position or direction of a light source with global state.
This class implements a node environment container.
Definition: SDXNode.h:62
This class implements the base class for all nodes needing update calls regularly.
Definition: SDXUpdateNode.h:25
This class implements a timestamp.
Definition: Timestamp.h:36
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15