8#ifndef META_OCEAN_RENDERING_GI_VIEW_H
9#define META_OCEAN_RENDERING_GI_VIEW_H
33class OCEAN_RENDERING_GI_EXPORT
GIView :
This class implements a color defined by red, green, blue and alpha parameters.
Definition RGBAColor.h:41
GIObject()
Creates a new Global Illumination object.
Scalar farDistance() const override
Returns the distance to the far clipping plane.
RGBAColor backgroundColor() const override
Returns the background color of the view.
~GIView() override
Destructs a view object.
Scalar viewNearDistance
View near clipping plane.
Definition GIView.h:175
friend class GIFramebuffer
Definition GIView.h:37
Scalar viewAspectRatio
View aspect ratio defined by (width / height).
Definition GIView.h:172
SquareMatrix4 viewProjectionMatrix
View projection matrix.
Definition GIView.h:163
bool setBackgroundColor(const RGBAColor &color) override
Sets the background color of the view.
HomogenousMatrix4 invertedMatrix() const
Returns the inverted view (extrinsic) matrix.
Definition GIView.h:196
GIView()
Creates a new view object.
HomogenousMatrix4 viewMatrix
View (extrinsic camera) matrix.
Definition GIView.h:166
bool setNearFarDistance(const Scalar nearDistance, const Scalar farDistance) override
Sets the distance of the near and far clipping plane.
bool setNearDistance(const Scalar distance) override
Sets the distance of the near clippling plane.
bool setFarDistance(const Scalar distance) override
Sets the distance of the far clipping plane.
HomogenousMatrix4 matrix() const
Returns the view (extrinsic) matrix.
Definition GIView.h:190
virtual void calculateProjectionMatrix()=0
(Re-)calculates the view projection matrix.
Scalar aspectRatio() const override
Returns the aspect ratio of this view.
const LightSourceRef & headlight() const
Returns the headlight object of this view.
LightSourceRef viewHeadlight
View headlight object.
Definition GIView.h:187
void setTransformation(const HomogenousMatrix4 &transformation) override
Sets the position and orientation of the view by a viewing matrix.
bool useHeadlight() const override
Returns whether the headlight is enabled.
SquareMatrix4 projectionMatrix() const override
Returns the view projection matrix.
RGBAColor viewBackgroundColor
Holds the view background color.
Definition GIView.h:181
Scalar nearDistance() const override
Returns the distance to the near clipping plane.
void setUseHeadlight(const bool state) override
Sets whether the headlight should be activated.
bool setAspectRatio(const Scalar aspectRatio) override
Sets the aspect ration of the view.
bool viewUseHeadlight
Determines whether the headlight is enabled.
Definition GIView.h:184
Scalar viewFarDistance
View far clipping plane.
Definition GIView.h:178
HomogenousMatrix4 transformation() const override
Returns the viewing matrix of the viewer as homogenous transformation.
HomogenousMatrix4 invertedViewMatrix
Inverted view (extrinsic camera) matrix.
Definition GIView.h:169
View()
Creates a new view object.
HomogenousMatrixT4< Scalar > HomogenousMatrix4
Definition of the HomogenousMatrix4 object, depending on the OCEAN_MATH_USE_SINGLE_PRECISION flag eit...
Definition HomogenousMatrix4.h:44
SquareMatrixT4< Scalar > SquareMatrix4
Definition of the SquareMatrix4 object, depending on the OCEAN_MATH_USE_SINGLE_PRECISION either with ...
Definition SquareMatrix4.h:39
float Scalar
Definition of a scalar type.
Definition Math.h:129
SmartObjectRef< LightSource > LightSourceRef
Definition of a smart object reference holding a light source object.
Definition LightSource.h:31
Namespace of the Rendering Global Illumination library.
Definition GIAttribute.h:23
Namespace of the Rendering library.
Definition AbsoluteTransform.h:18
The namespace covering the entire Ocean framework.
Definition Accessor.h:15