Go to the documentation of this file.
17 #ifndef GZ_RENDERING_OGRE_OGRECAMERA_HH_
18 #define GZ_RENDERING_OGRE_OGRECAMERA_HH_
36 inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
39 class OgreSelectionBuffer;
52 public:
virtual void SetHFOV(
const math::Angle &_hfov)
override;
55 public:
virtual double AspectRatio()
const override;
58 public:
virtual void SetAspectRatio(
const double _ratio)
override;
61 public:
virtual unsigned int AntiAliasing()
const override;
64 public:
virtual void SetAntiAliasing(
const unsigned int _aa)
override;
67 public:
virtual void SetFarClipPlane(
const double _far)
override;
70 public:
virtual void SetNearClipPlane(
const double _near)
override;
72 public:
virtual math::Color BackgroundColor()
const;
74 public:
virtual void SetBackgroundColor(
const math::Color &_color);
77 public:
virtual void Render()
override;
86 public:
virtual void SetProjectionMatrix(
96 public:
void SetVFOV(
double cameraVFOV)
const;
100 public:
double NearClip()
const;
104 public:
double FarClip()
const;
107 public:
virtual VisualPtr VisualAt(
const gz::math::Vector2i
108 &_mousePos)
override;
112 public:
virtual void SetMaterial(
116 public:
virtual unsigned int RenderTextureGLId()
const override;
119 public:
virtual void Destroy()
override;
122 public:
virtual void SetVisibilityMask(uint32_t _mask)
override;
125 public: Ogre::Camera *
Camera()
const;
132 protected:
virtual void Init()
override;
134 protected:
virtual void SetSelectionBuffer();
136 private:
void CreateCamera();
138 protected:
virtual void CreateRenderTexture();
142 protected:
void DestroyRenderTexture();
144 protected: Ogre::Camera *ogreCamera =
nullptr;
OgreRenderTargetPtr renderTexture
Definition: gz/rendering/ogre/OgreCamera.hh:148
Definition: gz/rendering/ogre/OgreCamera.hh:27
Definition: gz/rendering/ogre/OgreScene.hh:39
math::Color backgroundColor
Definition: gz/rendering/ogre/OgreCamera.hh:150
Posable camera used for rendering the scene graph.
Definition: gz/rendering/Camera.hh:49
CameraProjectionType
Enum for projection types.
Definition: gz/rendering/Camera.hh:39
Represents a render-target to which cameras can render images.
Definition: gz/rendering/RenderTarget.hh:37
A Ray Query class used for computing ray object intersections.
Definition: gz/rendering/ogre/OgreRayQuery.hh:39
Definition: gz/rendering/ogre/OgreCamera.hh:41
Generates a selection buffer object for a given camera. The selection buffer is used of entity select...
Definition: gz/rendering/ogre/OgreSelectionBuffer.hh:47
Definition: gz/rendering/base/BaseCamera.hh:44