Go to the documentation of this file.
18 #ifndef GZ_RENDERING_OGRE_OGRETHERMALCAMERA_HH_
19 #define GZ_RENDERING_OGRE_OGRETHERMALCAMERA_HH_
32 #include "gz/rendering/ogre/Export.hh"
40 #include "gz/common/Event.hh"
41 #include "gz/common/Console.hh"
54 inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
57 class OgreThermalCameraPrivate;
62 class IGNITION_RENDERING_OGRE_VISIBLE OgreThermalCamera :
64 public BaseThermalCamera<OgreSensor>
67 protected: OgreThermalCamera();
70 public:
virtual ~OgreThermalCamera();
73 public:
virtual void Init()
override;
76 public:
virtual void CreateRenderTexture();
80 protected:
void DestroyRenderTexture();
83 public:
virtual void PostRender()
override;
88 public:
virtual gz::common::ConnectionPtr ConnectNewThermalFrame(
89 std::function<
void(
const uint16_t *,
unsigned int,
unsigned int,
90 unsigned int,
const std::string &)> _subscriber)
override;
93 public:
virtual void PreRender()
override;
96 public:
virtual void Render()
override;
99 public:
virtual void Destroy()
override;
106 protected:
void CreateCamera();
109 private:
void CreateThermalTexture();
112 protected: Ogre::Camera *ogreCamera =
nullptr;
Definition: gz/rendering/ogre/OgreCamera.hh:27
Definition: gz/rendering/ogre/OgreScene.hh:39
shared_ptr< RenderTarget > RenderTargetPtr
Shared pointer to RenderTarget.
Definition: gz/rendering/RenderTypes.hh:235