![]() |
VR-Forces 4.10 Class Documentation
|
A class for controlling text owned by the TextRenderer. More...
Public Member Functions | |
| DtTextProxy (DtTextRenderer *parent) | |
| CTOR. More... | |
| DtTextProxy * | clone (DtTextRenderer *parent) const |
| Clone the given DtTextProxy. More... | |
| virtual | ~DtTextProxy () |
| DTOR. More... | |
| void | setAlignment (DtFont::TextAlignement alignment) |
| Set the position. More... | |
| DtFont::TextAlignement | alignment () const |
| Returns alignment. More... | |
| void | setParent (DtTextRenderer *) |
| Sets the parent of this proxy. More... | |
| void | setPosition (float x, float y, float z, float w=0) |
| Set the position. More... | |
| const float * | position () const |
| Returns positiuon. More... | |
| void | setRotation (float angle) |
| Set the rotation. More... | |
| float | rotation () const |
| Returns rotation. More... | |
| void | setColor (float r, float g, float b, float a) |
| Set the color of the text. More... | |
| const float * | color () const |
| Returns color. More... | |
| void | setString (const DtUnicode &str) |
| Set the text string. More... | |
| const DtUnicode & | string () const |
| Gets the text string. More... | |
| void | setFont (DtFontSP font) |
| Set the font to render using. More... | |
| DtFontSP | font () const |
| Get the font rendering. More... | |
| Dt2dPoint | calculateGlyphSize (const DtPen &pen, const DtUnicode &string, unsigned int pos=0, int len=-1) |
| Calculate the bounding box for a string. More... | |
| DtBoundingBox | calculateBoundingBox (const DtPen &pen, const DtUnicode &string, unsigned int pos=0, int len=-1) |
| Calculate the bounding box for a string. More... | |
| void | setBounds (const DtBoundingBox &box) |
| Set the bounds of the text. More... | |
| const DtBoundingBox & | bounds () const |
| Returns bounding box. More... | |
| void | setGroup (unsigned int group) |
| Sets the text group. More... | |
| unsigned int | group () const |
| Gets the group of the text. More... | |
| virtual void | renderText (DtTexturedGlyphRenderer *) |
| Renders text using the layout renderer to the given glyph renderer. More... | |
Protected Member Functions | |
| void | makeOrChangeTextLayout (const DtUnicode &str) |
Protected Attributes | |
| DtTextRenderer * | myParent |
| float | myRotation |
| float | myPosition [4] |
| float | myColor [4] |
| unsigned int | myGroup |
| DtFont::TextAlignement | myAlignment |
| DtUnicode | myString |
| DtBoundingBox | myBounds |
| DtFontSP | myFont |
| DtTextLayoutInterface * | myTextLayout |
A class for controlling text owned by the TextRenderer.
| makVrv::DtTextProxy::DtTextProxy | ( | DtTextRenderer * | parent | ) |
CTOR.
|
virtual |
DTOR.
| DtTextProxy* makVrv::DtTextProxy::clone | ( | DtTextRenderer * | parent | ) | const |
Clone the given DtTextProxy.
| void makVrv::DtTextProxy::setAlignment | ( | DtFont::TextAlignement | alignment | ) |
Set the position.
|
inline |
Returns alignment.
| void makVrv::DtTextProxy::setParent | ( | DtTextRenderer * | ) |
Sets the parent of this proxy.
| void makVrv::DtTextProxy::setPosition | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | w = 0 |
||
| ) |
Set the position.
| const float* makVrv::DtTextProxy::position | ( | ) | const |
Returns positiuon.
| void makVrv::DtTextProxy::setRotation | ( | float | angle | ) |
Set the rotation.
| float makVrv::DtTextProxy::rotation | ( | ) | const |
Returns rotation.
| void makVrv::DtTextProxy::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) |
Set the color of the text.
| const float* makVrv::DtTextProxy::color | ( | ) | const |
Returns color.
| void makVrv::DtTextProxy::setString | ( | const DtUnicode & | str | ) |
Set the text string.
If this string is left to right will create a DtGenericTextLayoutRenderer to render the text, else will create a DtHarfbuzzTextRenderer to layout the text
| const DtUnicode& makVrv::DtTextProxy::string | ( | ) | const |
Gets the text string.
| void makVrv::DtTextProxy::setFont | ( | DtFontSP | font | ) |
Set the font to render using.
| DtFontSP makVrv::DtTextProxy::font | ( | ) | const |
Get the font rendering.
| Dt2dPoint makVrv::DtTextProxy::calculateGlyphSize | ( | const DtPen & | pen, |
| const DtUnicode & | string, | ||
| unsigned int | pos = 0, |
||
| int | len = -1 |
||
| ) |
Calculate the bounding box for a string.
| DtBoundingBox makVrv::DtTextProxy::calculateBoundingBox | ( | const DtPen & | pen, |
| const DtUnicode & | string, | ||
| unsigned int | pos = 0, |
||
| int | len = -1 |
||
| ) |
Calculate the bounding box for a string.
| void makVrv::DtTextProxy::setBounds | ( | const DtBoundingBox & | box | ) |
Set the bounds of the text.
| const DtBoundingBox& makVrv::DtTextProxy::bounds | ( | ) | const |
Returns bounding box.
|
virtual |
Renders text using the layout renderer to the given glyph renderer.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |