- gazebo
- rendering
- MovableText
Movable text. More...
#include <MovableText.hh>
Public Types | |
| enum | HorizAlign { H_LEFT, H_CENTER } |
| Horizontal alignment. | |
| enum | VertAlign { V_BELOW, V_ABOVE } |
| vertical alignment | |
Public Member Functions | |
| MovableText () | |
| Constructor. | |
| virtual | ~MovableText () |
| Destructor. | |
| void | Load (const std::string &_name, const std::string &_text, const std::string &_fontName="Arial", float _charHeight=1.0, const common::Color &_color=common::Color::White) |
| Loads text and font info. | |
| void | SetFontName (const std::string &font) |
| Set the font. | |
| const std::string & | GetFont () const |
| Get the font. | |
| void | SetText (const std::string &caption) |
| Set the text to display. | |
| const std::string & | GetText () const |
| Get the displayed text. | |
| void | SetColor (const common::Color &_color) |
| Set the text color. | |
| const common::Color & | GetColor () const |
| Get the text color. | |
| void | SetCharHeight (float height) |
| Set the height of a character. | |
| float | GetCharHeight () const |
| Set the height of a characters. | |
| void | SetSpaceWidth (float width) |
| Set the width of a space. | |
| float | GetSpaceWidth () const |
| Get the width of a space. | |
| void | SetTextAlignment (const HorizAlign &hAlign, const VertAlign &vAlign) |
| Set the alignment of the text. | |
| void | SetBaseline (float height) |
| Set the baseline height of the text. | |
| float | GetBaseline () const |
| Get the baseline height. | |
| void | SetShowOnTop (bool show) |
| True=text always is displayed ontop. | |
| bool | GetShowOnTop () const |
| True=text is displayed on top. | |
| math::Box | GetAABB () |
| Get the axis aligned bounding box of the text. | |
| void | Update () |
| Update the text. | |
| virtual void | visitRenderables (Ogre::Renderable::Visitor *visitor, bool debug=false) |
| Method to allow a caller to abstractly iterate over the. | |
Protected Member Functions | |
| void | _setupGeometry () |
| setup the geometry (from MovableText) | |
| void | _updateColors () |
| update the color(from MovableText) | |
| void | getWorldTransforms (Ogre::Matrix4 *xform) const |
| Get the world transform (from MovableObject) | |
| float | getBoundingRadius () const |
| Get the bounding radiu (from MovableObject) | |
| float | getSquaredViewDepth (const Ogre::Camera *cam) const |
| Get the squared view depth (from MovableObject) | |
| void | getRenderOperation (Ogre::RenderOperation &op) |
| Get the render operation. | |
| const Ogre::MaterialPtr & | getMaterial (void) const |
| Get the material. | |
| const Ogre::LightList & | getLights (void) const |
| Get the lights. | |
Movable text.
1.7.5.1