8 #ifndef META_OCEAN_RENDERING_VIEW_H
9 #define META_OCEAN_RENDERING_VIEW_H
45 class OCEAN_RENDERING_EXPORT
View :
virtual public Object
This class implements an infinite line in 3D space.
Definition: Line3.h:70
This class implements a color defined by red, green, blue and alpha parameters.
Definition: RGBAColor.h:41
This class is the base class for all rendering objects.
Definition: Object.h:54
ObjectType
Definition of different object type.
Definition: Object.h:63
PhantomMode
Definition of different phantom modes.
Definition: PhantomAttribute.h:43
This class is the base class for all rendering views.
Definition: View.h:46
virtual bool setPhantomMode(const PhantomAttribute::PhantomMode mode)
Sets the phantom mode of this view.
virtual Line3 viewingRay(const Scalar x, const Scalar y, const unsigned int width, const unsigned int height) const
Returns a viewing ray into the scene.
virtual HomogenousMatrix4 transformation() const
Returns the transformation between view and world (the extrinsic camera data, the inverse of the know...
Backgrounds backgrounds_
The view's background objects.
Definition: View.h:262
View()
Creates a new view object.
virtual void fitCamera(const NodeRef &node=NodeRef())
Fits the camera to a given node.
virtual bool setNearFarDistance(const Scalar nearDistance, const Scalar farDistance)
Sets the distance to the near and far clipping plane.
~View() override
Destructs a view object.
virtual void addBackground(const BackgroundRef &background)
Adds a new background object to the background stack of the view.
virtual Scalar farDistance() const
Returns the distance to the far clipping plane.
virtual PhantomAttribute::PhantomMode phantomMode() const
Returns the phantom mode of this view.
virtual bool setBackgroundColor(const RGBAColor &color)
Sets the background color of the view.
virtual void setTransformation(const HomogenousMatrix4 &world_T_view)
Sets the position and orientation of the view in world coordinates (the extrinsic camera data,...
virtual bool useHeadlight() const
Returns whether the head light is enabled.
virtual RGBAColor backgroundColor() const
Returns the background color of the view.
virtual Backgrounds backgrounds() const
Returns all defined background objects.
virtual bool setAspectRatio(const Scalar aspectRatio)
Sets the aspect ratio of this view.
virtual BackgroundRef background() const
Returns the currently used background of the view.
virtual SquareMatrix4 projectionMatrix() const
Returns the projection matrix of this view.
virtual void removeBackground(const BackgroundRef &background)
Removes a background object from the background stack of this view.
virtual Scalar nearDistance() const
Returns the distance to the near clipping plane.
virtual void setUseHeadlight(const bool state)
Sets whether the headlight should be activated.
virtual bool setFarDistance(const Scalar distance)
Sets the distance to the far clipping plane.
virtual Scalar aspectRatio() const
Returns the aspect ratio of this view.
std::vector< BackgroundRef > Backgrounds
Definition of a vector holding background objects.
Definition: View.h:52
ObjectType type() const override
Returns the type of this object.
virtual bool setNearDistance(const Scalar distance)
Sets the distance to the near clipping plane.
float Scalar
Definition of a scalar type.
Definition: Math.h:128
SmartObjectRef< View > ViewRef
Definition of a smart object reference holding a view node.
Definition: View.h:31
SmartObjectRef< Node > NodeRef
Definition of a smart object reference holding a node.
Definition: rendering/Node.h:27
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15