Movable text.
More...
#include <rendering/rendering.hh>
Inherits MovableObject, and Renderable.
Horizontal alignment.
Enumerator |
---|
H_LEFT |
Left alignment.
|
H_CENTER |
Center alignment.
|
vertical alignment
Enumerator |
---|
V_BELOW |
Align below.
|
V_ABOVE |
Align above.
|
Get the axis aligned bounding box of the text.
- Returns
- The axis aligned bounding box.
float GetBaseline |
( |
| ) |
const |
Get the baseline height.
- Returns
- Baseline height
float getBoundingRadius |
( |
| ) |
const |
|
protected |
float GetCharHeight |
( |
| ) |
const |
Set the height of a characters return Height of the characters.
Get the text color.
- Returns
- Texture color.
const std::string& GetFont |
( |
| ) |
const |
Get the font.
- Returns
- The font name
const Ogre::LightList& getLights |
( |
void |
| ) |
const |
|
protected |
const Ogre::MaterialPtr& getMaterial |
( |
void |
| ) |
const |
|
protected |
void getRenderOperation |
( |
Ogre::RenderOperation & |
op | ) |
|
|
protected |
bool GetShowOnTop |
( |
| ) |
const |
True = text is displayed on top.
- Returns
- True if MovableText::SetShownOnTop(true) was called.
float GetSpaceWidth |
( |
| ) |
const |
Get the width of a space.
- Returns
- Space width
float getSquaredViewDepth |
( |
const Ogre::Camera * |
cam | ) |
const |
|
protected |
const std::string& GetText |
( |
| ) |
const |
Get the displayed text.
- Returns
- The displayed text.
void getWorldTransforms |
( |
Ogre::Matrix4 * |
xform | ) |
const |
|
protected |
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.
- 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 SetBaseline |
( |
float |
_height | ) |
|
Set the baseline height of the text.
- Parameters
-
[in] | _height | Baseline height |
void SetCharHeight |
( |
float |
_height | ) |
|
Set the height of a character.
- Parameters
-
[in] | _height | Height of the characters. |
Set the text color.
- Parameters
-
void SetFontName |
( |
const std::string & |
_font | ) |
|
Set the font.
- Parameters
-
[in] | _font | Name of the font |
void 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 SetSpaceWidth |
( |
float |
_width | ) |
|
Set the width of a space.
- Parameters
-
void SetText |
( |
const std::string & |
_text | ) |
|
Set the text to display.
- Parameters
-
[in] | _text | The text to display. |
Set the alignment of the text.
- Parameters
-
[in] | _hAlign | Horizontal alignment |
[in] | _vAlign | Vertical alignment |
virtual void visitRenderables |
( |
Ogre::Renderable::Visitor * |
_visitor, |
|
|
bool |
_debug = false |
|
) |
| |
|
virtual |
The documentation for this class was generated from the following file: