8#ifndef META_OCEAN_RENDERING_PERSPECTIVE_VIEW_H
9#define META_OCEAN_RENDERING_PERSPECTIVE_VIEW_H
ObjectType
Definition of different object type.
Definition Object.h:62
This class is the base class for all perspective views.
Definition PerspectiveView.h:37
ObjectType type() const override
Returns the type of this object.
virtual Scalar fovX() const
Returns the horizontal field of view in radian.
PerspectiveView()
Creates a new perspective view object.
virtual void updateToIdealFovX()
Updates the view's field of view to the ideal field of view matching with the current background.
virtual bool setFovX(const Scalar fovx)
Sets the horizontal field of view in radian.
~PerspectiveView() override
Destructs a perspective view object.
virtual void setProjectionMatrix(const SquareMatrix4 &clip_T_view)
Sets the projection matrix explicitly.
void fitCamera(const NodeRef &node=NodeRef()) override
Fits the camera to a given node.
virtual Scalar idealFovX(bool *validCamera=nullptr) const
Calculates the ideal field of view matching to the current background.
This class implements a smart rendering object reference.
Definition rendering/ObjectRef.h:34
View()
Creates a new view object.
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< PerspectiveView > PerspectiveViewRef
Definition of a smart object reference holding a perspective view node.
Definition PerspectiveView.h:30
SmartObjectRef< Node > NodeRef
Definition of a smart object reference holding a node.
Definition rendering/Node.h:34
Namespace of the Rendering library.
Definition AbsoluteTransform.h:18
The namespace covering the entire Ocean framework.
Definition Accessor.h:15