![]() |
VR-Forces 4.0.4 Class Documentation
|
A class for controlling text owned by the TextRenderer. More...
Public Member Functions | |
| ~DtTextProxy () | |
| DTOR. | |
| void | setAlignment (DtFont::TextAlignement alignment) |
| Set the position. | |
| void | setPosition (float x, float y, float z, float w=0) |
| Set the position. | |
| void | setRotation (float angle) |
| Set the rotation. | |
| void | setColor (float r, float g, float b, float a) |
| Set the color of the text. | |
| void | setString (const DtUnicode &str) |
| Set the text string. | |
| const DtUnicode & | string () const |
| Gets the text string. | |
| void | setFont (DtFontSP font) |
| Set the font to render using. | |
| DtFontSP | font () |
| Get the font rendering. | |
| void | setBounds (const DtBoundingBox &box) |
| Set the bounds of the text. | |
| void | setGroup (unsigned int group) |
| Sets the text group. | |
| unsigned int | group () const |
| Gets the group of the text. | |
Protected Member Functions | |
| DtTextProxy (DtTextRenderer *parent) | |
| CTOR. | |
| DtTextProxy * | clone (DtTextRenderer *parent) const |
| Clone the given DtTextProxy. | |
Protected Attributes | |
| DtTextRenderer * | myParent |
| float | myRotation |
| float | myPosition [4] |
| float | myColor [4] |
| unsigned int | myGroup |
| DtFont::TextAlignement | myAlignment |
| DtUnicode | myString |
| DtBoundingBox | myBounds |
| DtFontSP | myFont |
Friends | |
| class | DtTextRenderer |
A class for controlling text owned by the TextRenderer.
DTOR.
| makVrv::DtTextProxy::DtTextProxy | ( | DtTextRenderer * | parent | ) | [protected] |
CTOR.
| void makVrv::DtTextProxy::setAlignment | ( | DtFont::TextAlignement | alignment | ) |
Set the position.
| void makVrv::DtTextProxy::setPosition | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | w = 0 |
||
| ) |
Set the position.
| void makVrv::DtTextProxy::setRotation | ( | float | angle | ) |
Set the rotation.
| void makVrv::DtTextProxy::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) |
Set the color of the text.
| void makVrv::DtTextProxy::setString | ( | const DtUnicode & | str | ) |
Set the text string.
| const DtUnicode& makVrv::DtTextProxy::string | ( | ) | const |
Gets the text string.
| void makVrv::DtTextProxy::setFont | ( | DtFontSP | font | ) |
Set the font to render using.
Get the font rendering.
| void makVrv::DtTextProxy::setBounds | ( | const DtBoundingBox & | box | ) |
Set the bounds of the text.
| void makVrv::DtTextProxy::setGroup | ( | unsigned int | group | ) |
Sets the text group.
| unsigned int makVrv::DtTextProxy::group | ( | ) | const |
Gets the group of the text.
| DtTextProxy* makVrv::DtTextProxy::clone | ( | DtTextRenderer * | parent | ) | const [protected] |
Clone the given DtTextProxy.
friend class DtTextRenderer [friend] |
DtTextRenderer* makVrv::DtTextProxy::myParent [protected] |
float makVrv::DtTextProxy::myRotation [protected] |
float makVrv::DtTextProxy::myPosition[4] [protected] |
float makVrv::DtTextProxy::myColor[4] [protected] |
unsigned int makVrv::DtTextProxy::myGroup [protected] |
DtUnicode makVrv::DtTextProxy::myString [protected] |
DtBoundingBox makVrv::DtTextProxy::myBounds [protected] |
DtFontSP makVrv::DtTextProxy::myFont [protected] |