Movable text.
More...
#include <rendering/rendering.hh>
Horizontal alignment.
Enumerator |
---|
H_LEFT |
Left alignment.
|
H_CENTER |
Center alignment.
|
vertical alignment
Enumerator |
---|
V_BELOW |
Align below.
|
V_ABOVE |
Align above.
|
gazebo::rendering::MovableText::MovableText |
( |
) | |
|
virtual gazebo::rendering::MovableText::~MovableText |
( |
) | |
|
|
virtual |
void gazebo::rendering::MovableText::_setupGeometry |
( |
) | |
|
|
protected |
void gazebo::rendering::MovableText::_updateColors |
( |
) | |
|
|
protected |
math::Box gazebo::rendering::MovableText::GetAABB |
( |
) | |
|
Get the axis aligned bounding box of the text.
- Returns
- The axis aligned bounding box.
float gazebo::rendering::MovableText::GetBaseline |
( |
) | |
const |
Get the baseline height.
- Returns
- Baseline height
float gazebo::rendering::MovableText::getBoundingRadius |
( |
) | |
const |
|
protected |
float gazebo::rendering::MovableText::GetCharHeight |
( |
) | |
const |
Set the height of a characters return Height of the characters.
const common::Color& gazebo::rendering::MovableText::GetColor |
( |
) | |
const |
Get the text color.
- Returns
- Texture color.
const std::string& gazebo::rendering::MovableText::GetFont |
( |
) | |
const |
Get the font.
- Returns
- The font name
const Ogre::LightList& gazebo::rendering::MovableText::getLights |
( |
void |
) | |
const |
|
protected |
const Ogre::MaterialPtr& gazebo::rendering::MovableText::getMaterial |
( |
void |
) | |
const |
|
protected |
void gazebo::rendering::MovableText::getRenderOperation |
( |
Ogre::RenderOperation & |
op) | |
|
|
protected |
bool gazebo::rendering::MovableText::GetShowOnTop |
( |
) | |
const |
True = text is displayed on top.
- Returns
- True if MovableText::SetShownOnTop(true) was called.
float gazebo::rendering::MovableText::GetSpaceWidth |
( |
) | |
const |
Get the width of a space.
- Returns
- Space width
float gazebo::rendering::MovableText::getSquaredViewDepth |
( |
const Ogre::Camera * |
cam) | |
const |
|
protected |
const std::string& gazebo::rendering::MovableText::GetText |
( |
) | |
const |
Get the displayed text.
- Returns
- The displayed text.
void gazebo::rendering::MovableText::getWorldTransforms |
( |
Ogre::Matrix4 * |
xform) | |
const |
|
protected |
void gazebo::rendering::MovableText::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.
- Parameters
-
[in] | _name | Name of the text object |
[in] | _text | Text to render |
[in] | _fontName | Font to use |
[in] | _charHeight | Height of the characters |
[in] | _color | Text color |
void gazebo::rendering::MovableText::SetBaseline |
( |
float |
_height) | |
|
Set the baseline height of the text.
- Parameters
-
[in] | _height | Baseline height |
void gazebo::rendering::MovableText::SetCharHeight |
( |
float |
_height) | |
|
Set the height of a character.
- Parameters
-
[in] | _height | Height of the characters. |
void gazebo::rendering::MovableText::SetColor |
( |
const common::Color & |
_color) | |
|
Set the text color.
- Parameters
-
void gazebo::rendering::MovableText::SetFontName |
( |
const std::string & |
_font) | |
|
Set the font.
- Parameters
-
[in] | _font | Name of the font |
void gazebo::rendering::MovableText::SetShowOnTop |
( |
bool |
_show) | |
|
True = text always is displayed ontop.
- Parameters
-
[in] | _show | Set to true to render the text on top of all other drawables. |
void gazebo::rendering::MovableText::SetSpaceWidth |
( |
float |
_width) | |
|
Set the width of a space.
- Parameters
-
void gazebo::rendering::MovableText::SetText |
( |
const std::string & |
_text) | |
|
Set the text to display.
- Parameters
-
[in] | _text | The text to display. |
void gazebo::rendering::MovableText::SetTextAlignment |
( |
const HorizAlign & |
_hAlign, |
|
|
const VertAlign & |
_vAlign |
|
) |
| |
Set the alignment of the text.
- Parameters
-
[in] | _hAlign | Horizontal alignment |
[in] | _vAlign | Vertical alignment |
void gazebo::rendering::MovableText::Update |
( |
) | |
|
virtual void gazebo::rendering::MovableText::visitRenderables |
( |
Ogre::Renderable::Visitor * |
_visitor, |
|
|
bool |
_debug = false |
|
) |
| |
|
virtual |
The documentation for this class was generated from the following file: