Go to the documentation of this file.
18 #ifndef GZ_RENDERING_OGRE2_OGRE2DEPTHCAMERA_HH_
19 #define GZ_RENDERING_OGRE2_OGRE2DEPTHCAMERA_HH_
33 #include "gz/common/Event.hh"
34 #include "gz/common/Console.hh"
48 inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
51 class Ogre2DepthCameraPrivate;
64 public:
virtual void Init()
override;
67 public:
virtual void Destroy()
override;
70 public:
virtual void CreateRenderTexture();
74 public:
virtual void CreateDepthTexture()
override;
78 private:
void CreateWorkspaceInstance();
81 public:
virtual void PreRender()
override;
84 public:
virtual void PostRender()
override;
88 public:
virtual const float *DepthData()
const override;
93 public:
virtual gz::common::ConnectionPtr ConnectNewDepthFrame(
95 unsigned int,
const std::string &)> _subscriber)
override;
100 public:
virtual gz::common::ConnectionPtr ConnectNewRgbPointCloud(
101 std::function<
void(
const float *,
unsigned int,
unsigned int,
102 unsigned int,
const std::string &)> _subscriber)
override;
105 public:
virtual void Render()
override;
109 public:
virtual void SetFarClipPlane(
const double _far)
override;
113 public:
virtual void SetNearClipPlane(
const double _near)
override;
118 public:
double NearClipPlane()
const override;
123 public:
double FarClipPlane()
const override;
126 public:
void SetShadowsDirty()
override;
129 public:
void AddRenderPass(
const RenderPassPtr &_pass)
override;
139 protected:
static double LimitFOV(
const double _fov);
142 protected:
void CreateCamera();
149 private:
void SetShadowsNodeDefDirty();
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:57
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:152
Depth camera used to render depth data into an image buffer.
Definition: gz/rendering/ogre2/Ogre2DepthCamera.hh:54