Class MovableText

Inheritance Relationships

Base Type

  • public Ogre::SimpleRenderable

Class Documentation

class MovableText : public Ogre::SimpleRenderable

Public Functions

explicit RVIZ_RENDERING_PUBLIC MovableText(const Ogre::String &caption, const Ogre::String &fontName = "Liberation Sans", Ogre::Real charHeight = 1.0, const Ogre::ColourValue &color = Ogre::ColourValue::White)
RVIZ_RENDERING_PUBLIC ~MovableText() override
RVIZ_RENDERING_PUBLIC void setFontName (const Ogre::String &font_name)
RVIZ_RENDERING_PUBLIC void setCaption (const Ogre::String &caption)
RVIZ_RENDERING_PUBLIC void setColor (const Ogre::ColourValue &color)
RVIZ_RENDERING_PUBLIC void setCharacterHeight (Ogre::Real height)
RVIZ_RENDERING_PUBLIC void setLineSpacing (Ogre::Real height)
RVIZ_RENDERING_PUBLIC void setSpaceWidth (Ogre::Real width)
RVIZ_RENDERING_PUBLIC void setTextAlignment (const HorizontalAlignment &horizontal_alignment, const VerticalAlignment &vertical_alignment)
RVIZ_RENDERING_PUBLIC void setGlobalTranslation (Ogre::Vector3 translation)
RVIZ_RENDERING_PUBLIC void setLocalTranslation (Ogre::Vector3 translation)
RVIZ_RENDERING_PUBLIC void showOnTop (bool show=true)
inline RVIZ_RENDERING_PUBLIC const Ogre::String & getFontName () const
inline RVIZ_RENDERING_PUBLIC const Ogre::String & getCaption () const
inline RVIZ_RENDERING_PUBLIC const Ogre::ColourValue & getColor () const
inline RVIZ_RENDERING_PUBLIC Ogre::Real getCharacterHeight () const
inline RVIZ_RENDERING_PUBLIC Ogre::Real getSpaceWidth () const
inline RVIZ_RENDERING_PUBLIC Ogre::Vector3 getGlobalTranslation () const
inline RVIZ_RENDERING_PUBLIC Ogre::Vector3 getLocalTranslation () const
inline RVIZ_RENDERING_PUBLIC bool getShowOnTop () const
inline RVIZ_RENDERING_PUBLIC const Ogre::AxisAlignedBox & getBoundingBox () const override
inline RVIZ_RENDERING_PUBLIC Ogre::Real getBoundingRadius () const override
inline RVIZ_RENDERING_PUBLIC const Ogre::MaterialPtr & getMaterial () const override
RVIZ_RENDERING_PUBLIC void visitRenderables (Ogre::Renderable::Visitor *visitor, bool debug_renderables) override
RVIZ_RENDERING_PUBLIC void update ()

Protected Functions

void setupGeometry()
unsigned int calculateVertexCount() const
void setupRenderOperation()
Ogre::HardwareVertexBufferSharedPtr setupHardwareBuffers() const
void calculateTotalDimensionsForPositioning(float &total_height, float &total_width) const
float getVerticalStartFromVerticalAlignment(float total_height) const
float getLineStartFromHorizontalAlignment(float total_width) const
void fillVertexBuffer(Ogre::HardwareVertexBufferSharedPtr &position_and_texture_buffer, float top, float starting_left)
void updateColors()
void getWorldTransforms(Ogre::Matrix4 *xform) const override
inline Ogre::Real getSquaredViewDepth(const Ogre::Camera *cam) const override
const Ogre::Quaternion &getWorldOrientation() const
const Ogre::Vector3 &getWorldPosition() const
inline const Ogre::String &getMovableType() const override
void _notifyCurrentCamera(Ogre::Camera *camera) override
void _updateRenderQueue(Ogre::RenderQueue *queue) override
inline const Ogre::LightList &getLights() const override
void fillColorBuffer(Ogre::RGBA color) const
void getRenderOperation(Ogre::RenderOperation &op) override