Go to the documentation of this file.
19 #ifndef IGNITION_RENDERING_OGRE2_OGRE2BOUNDINGBOXCAMERA_HH_
20 #define IGNITION_RENDERING_OGRE2_OGRE2BOUNDINGBOXCAMERA_HH_
39 inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
42 class Ogre2BoundingBoxCameraPrivate;
56 public:
virtual void Init()
override;
59 public:
virtual void Destroy()
override;
62 public:
virtual void PreRender()
override;
65 public:
virtual void Render()
override;
68 public:
virtual void PostRender()
override;
76 ConnectNewBoundingBoxes(
80 public:
virtual void SetBoundingBoxType(
BoundingBoxType _type)
override;
87 public:
void CreateBoundingBoxTexture();
91 public:
void CreateRenderTexture();
96 public:
void FullBoundingBoxes();
100 public:
void VisibleBoundingBoxes();
103 public:
void BoundingBoxes3D();
115 public:
void MeshMinimalBox(
116 const Ogre::MeshPtr _mesh,
117 const Ogre::Matrix4 &_viewMatrix,
118 const Ogre::Matrix4 &_projMatrix,
119 Ogre::Vector3 &_minVertex,
120 Ogre::Vector3 &_maxVertex,
121 const Ogre::Vector3 &_position,
122 const Ogre::Quaternion &_orientation,
123 const Ogre::Vector3 &_scale
127 public:
virtual void DrawBoundingBox(
unsigned char *_data,
136 public:
void DrawLine(
unsigned char *_data,
143 public:
void ConvertToScreenCoord(Ogre::Vector3 &_minVertex,
144 Ogre::Vector3 &_maxVertex)
const;
148 public:
void MarkVisibleBoxes();
155 private:
void CreateCamera();
158 private:
void MergeMultiLinksModels2D();
161 private:
void MergeMultiLinksModels3D();
2D or 3D Bounding box. It stores the position / orientation / size info of the box and its label
Definition: gz/rendering/BoundingBox.hh:41
BoundingBox camera used to detect 2d / 3d bounding boxes of labeled objects in the scene.
Definition: gz/rendering/ogre2/Ogre2BoundingBoxCamera.hh:46
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
Definition: gz/rendering/base/BaseBoundingBoxCamera.hh:35
BoundingBoxType
BoundingBox types for Visible / Full 2D Boxes / 3D Boxes.
Definition: gz/rendering/BoundingBoxCamera.hh:37