8 #ifndef META_OCEAN_RENDERING_PERSPECTIVE_VIEW_H
9 #define META_OCEAN_RENDERING_PERSPECTIVE_VIEW_H
23 class PerspectiveView;
ObjectType
Definition of different object type.
Definition: Object.h:63
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
This class is the base class for all rendering views.
Definition: View.h:46
float Scalar
Definition of a scalar type.
Definition: Math.h:128
SmartObjectRef< Node > NodeRef
Definition of a smart object reference holding a node.
Definition: rendering/Node.h:27
SmartObjectRef< PerspectiveView > PerspectiveViewRef
Definition of a smart object reference holding a perspective view node.
Definition: PerspectiveView.h:23
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15