8 #ifndef META_OCEAN_SCENEDESCRIPTION_SDX_X3D_SPOT_LIGHT_H
9 #define META_OCEAN_SCENEDESCRIPTION_SDX_X3D_SPOT_LIGHT_H
17 namespace SceneDescription
This class implements a node specification object.
Definition: scenedescription/Node.h:77
This class implements a x3d spot light node.
Definition: scenedescription/sdx/x3d/SpotLight.h:31
SingleVector3 attenuation_
Attenuation field.
Definition: scenedescription/sdx/x3d/SpotLight.h:75
SingleFloat radius_
Radius field.
Definition: scenedescription/sdx/x3d/SpotLight.h:90
SingleVector3 direction_
Direction field.
Definition: scenedescription/sdx/x3d/SpotLight.h:84
SingleFloat beamWidth_
BeamWidth field.
Definition: scenedescription/sdx/x3d/SpotLight.h:78
SpotLight(const SDXEnvironment *environment)
Creates a new x3d spot light node.
void onGlobalLight(const HomogenousMatrix4 &world_T_light) override
Event function to update the position or direction of a light source with global state.
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...
size_t objectAddress() const override
Returns the address of the most derived object.
SingleVector3 location_
Location field.
Definition: scenedescription/sdx/x3d/SpotLight.h:87
SingleFloat cutOffAngle_
CutOffAngle field.
Definition: scenedescription/sdx/x3d/SpotLight.h:81
void onFieldChanged(const std::string &fieldName) override
Event function to inform the node about a changed field.
NodeSpecification specifyNode()
Specifies the node type and the fields of this node.
This class implements an abstract x3d light node.
Definition: X3DLightNode.h:35
This class implements a node environment container.
Definition: SDXNode.h:62
This class implements a timestamp.
Definition: Timestamp.h:36
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15