17 #ifndef GAZEBO_RENDERING_MOVABLETEXT_HH_
18 #define GAZEBO_RENDERING_MOVABLETEXT_HH_
23 #include <ignition/math/Box.hh>
24 #include <ignition/math/Color.hh>
36 class MovableTextPrivate;
44 :
public Ogre::MovableObject,
public Ogre::Renderable
77 public:
void Load(
const std::string &_name,
78 const std::string &_text,
79 const std::string &_fontName,
90 public:
void Load(
const std::string &_name,
91 const std::string &_text,
92 const std::string &_fontName =
"Arial",
93 float _charHeight = 1.0,
94 const ignition::math::Color &_color =
95 ignition::math::Color::White);
101 public:
void SetFontName(
const std::string &_font);
106 public:
const std::string &GetFont() const GAZEBO_DEPRECATED(9.0);
111 public: const std::
string &FontName() const;
116 public:
void SetText(const std::
string &_text);
121 public: const std::
string &GetText() const GAZEBO_DEPRECATED(9.0);
126 public: const std::
string &Text() const;
131 public:
void SetColor(const common::Color &_color) GAZEBO_DEPRECATED(9.0);
136 public:
void SetColor(const ignition::math::Color &_color);
141 public: const common::Color GetColor() const GAZEBO_DEPRECATED(9.0);
146 public: const ignition::math::Color &Color() const;
151 public:
void SetCharHeight(const
float _height);
156 public:
float GetCharHeight() const GAZEBO_DEPRECATED(9.0);
161 public:
float CharHeight() const;
166 public:
void SetSpaceWidth(const
float _width);
171 public:
float GetSpaceWidth() const GAZEBO_DEPRECATED(9.0);
176 public:
float SpaceWidth() const;
181 public:
void SetTextAlignment(const HorizAlign &_hAlign,
182 const VertAlign &_vAlign);
187 public:
void SetBaseline(const
float _height);
192 public:
float GetBaseline() const GAZEBO_DEPRECATED(9.0);
197 public:
float Baseline() const;
203 public:
void SetShowOnTop(const
bool _show);
208 public:
bool GetShowOnTop() const GAZEBO_DEPRECATED(9.0);
213 public:
bool ShowOnTop() const;
217 public: ignition::math::Box AABB();
220 public:
void Update();
227 public: virtual
void visitRenderables(Ogre::Renderable::Visitor *_visitor,
228 bool _debug = false) override;
232 protected:
void _setupGeometry() GAZEBO_DEPRECATED(9.0);
235 protected:
void SetupGeometry();
239 protected:
void _updateColors() GAZEBO_DEPRECATED(9.0);
242 protected:
void UpdateColors();
246 protected:
void getWorldTransforms(Ogre::Matrix4 *_xform) const override;
250 protected:
float getBoundingRadius() const override;
254 protected:
float getSquaredViewDepth(const Ogre::
Camera *_cam) const
259 protected:
void getRenderOperation(Ogre::RenderOperation &_op) override;
263 protected: const Ogre::MaterialPtr &getMaterial() const override;
268 protected: const Ogre::LightList &getLights() const override;
271 private: const Ogre::AxisAlignedBox &getBoundingBox() const override;
274 private: const Ogre::String &getMovableType() const override;
277 private:
void _notifyCurrentCamera(Ogre::
Camera *_cam) override;
280 private:
void _updateRenderQueue(Ogre::RenderQueue *_queue) override;
284 private: std::unique_ptr<MovableTextPrivate> dataPtr;
Basic camera sensor.
Definition: Camera.hh:81
VertAlign
vertical alignment
Definition: MovableText.hh:57
Movable text.
Definition: MovableText.hh:43
Left alignment.
Definition: MovableText.hh:50
Align below.
Definition: MovableText.hh:59
Defines a color.
Definition: Color.hh:36
#define GAZEBO_DEPRECATED(version)
Definition: system.hh:328
HorizAlign
Horizontal alignment.
Definition: MovableText.hh:48