Go to the documentation of this file.
18 #ifndef GZ_RENDERING_OGRE2_OGRE2DEPTHCAMERA_HH_
19 #define GZ_RENDERING_OGRE2_OGRE2DEPTHCAMERA_HH_
34 #include "gz/common/Event.hh"
35 #include "gz/common/Console.hh"
49 inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
52 class Ogre2DepthCameraPrivate;
65 public:
virtual void Init()
override;
68 public:
virtual void Destroy()
override;
71 public:
virtual void CreateRenderTexture();
75 public:
virtual void CreateDepthTexture()
override;
78 public:
virtual void PreRender()
override;
81 public:
virtual void PostRender()
override;
85 public:
virtual const float *DepthData()
const override;
90 public:
virtual gz::common::ConnectionPtr ConnectNewDepthFrame(
92 unsigned int,
const std::string &)> _subscriber)
override;
97 public:
virtual gz::common::ConnectionPtr ConnectNewRgbPointCloud(
99 unsigned int,
const std::string &)> _subscriber)
override;
102 public:
virtual void Render()
override;
106 public:
virtual void SetFarClipPlane(
const double _far)
override;
110 public:
virtual void SetNearClipPlane(
const double _near)
override;
115 public:
double NearClipPlane()
const override;
120 public:
double FarClipPlane()
const override;
123 public:
void AddRenderPass(
const RenderPassPtr &_pass)
override;
133 protected:
static double LimitFOV(
const double _fov);
136 protected:
void CreateCamera();
Definition: gz/rendering/base/BaseCamera.hh:41
Definition: gz/rendering/ogre/OgreCamera.hh:27
Ogre2.x implementation of the scene class.
Definition: gz/rendering/ogre2/Ogre2Scene.hh:41
Represents a render-target to which cameras can render images.
Definition: gz/rendering/RenderTarget.hh:37
Ogre::Camera * ogreCamera
Pointer to the ogre camera.
Definition: gz/rendering/ogre2/Ogre2DepthCamera.hh:139
Depth camera used to render depth data into an image buffer.
Definition: gz/rendering/ogre2/Ogre2DepthCamera.hh:55