8#ifndef META_OCEAN_RENDERING_GI_VIEW_H
9#define META_OCEAN_RENDERING_GI_VIEW_H
26namespace GlobalIllumination
33class OCEAN_RENDERING_GI_EXPORT
GIView :
HomogenousMatrixT4< T > inverted() const noexcept
Returns the inverted of this matrix.
Definition HomogenousMatrix4.h:1575
This class implements a color defined by red, green, blue and alpha parameters.
Definition RGBAColor.h:41
This class implements a base for all Global Illumination framebuffers.
Definition GIFramebuffer.h:39
This class is the base class for all Global Illumination objects.
Definition GIObject.h:29
This class implements a Global Illumination view object.
Definition GIView.h:36
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
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
This class is the base class for all rendering views.
Definition View.h:46
float Scalar
Definition of a scalar type.
Definition Math.h:129
The namespace covering the entire Ocean framework.
Definition Accessor.h:15