8 #ifndef META_OCEAN_RENDERING_LIGHT_SOURCE_H
9 #define META_OCEAN_RENDERING_LIGHT_SOURCE_H
This class implements a color defined by red, green, blue and alpha parameters.
Definition: RGBAColor.h:41
This is the base class for all lights.
Definition: LightSource.h:38
virtual void setTransformationType(const TransformationType transformationType)
Sets the transformation type of this light.
ObjectType type() const override
Returns the type of this object.
virtual bool setIntensity(const Scalar intensity)
Sets the specular exponent of this material.
virtual void get(RGBAColor &ambient, RGBAColor &diffuse, RGBAColor &specular, Scalar &intensity)
Gets all color values of the light at once.
virtual RGBAColor specularColor() const
Returns the specular color of this light source.
virtual void setEnabled(const bool state)
Sets whether the light source is enabled.
virtual bool setSpecularColor(const RGBAColor &color)
Sets the specular color of the light source.
virtual bool enabled() const
Returns whether this light source is enabled.
virtual RGBAColor ambientColor() const
Returns the ambient color of this light source.
virtual bool setAmbientColor(const RGBAColor &color)
Sets the ambient color of the light source.
virtual Scalar intensity() const
Returns the intensity of this light source.
LightSource()
Creates a new light source object.
virtual bool set(const RGBAColor &ambient, const RGBAColor &diffuse, const RGBAColor &specular, const Scalar intensity)
Sets all color values of the light source at once.
~LightSource() override
Destructs a light source object.
TransformationType
Defines different transformation types.
Definition: LightSource.h:45
@ TT_PARENT
The light is located in the coordinate system of the parent node, this is the default type.
Definition: LightSource.h:47
virtual bool setDiffuseColor(const RGBAColor &color)
Sets the diffuse color of the light source.
virtual TransformationType transformationType() const
Returns the transformation type of this light.
virtual RGBAColor diffuseColor() const
Returns the diffuse color of this light source.
This class is the base class for all rendering objects.
Definition: Object.h:54
ObjectType
Definition of different object type.
Definition: Object.h:63
float Scalar
Definition of a scalar type.
Definition: Math.h:128
SmartObjectRef< LightSource > LightSourceRef
Definition of a smart object reference holding a light source object.
Definition: LightSource.h:24
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15