![]() |
VR-Forces 4.8 Class Documentation
|
The attribute layout tells DtAttributes where to draw. More...

Public Member Functions | |
| DtBaseTextAttribute (DtDe &de) | |
| CTOR. More... | |
| virtual | ~DtBaseTextAttribute () |
| DTOR. More... | |
| virtual void | setString (const DtUnicode &str) |
| Set the string to render. More... | |
| virtual void | setPosition (float x, float y, float z, float w) |
| Set the position of the attribute in world space, using vrvGraphics float packing. More... | |
| virtual void | getMinSize (double &xOut, double &yOut) |
| Get the size of the attribute. More... | |
| virtual void | setOffset (double x, double y) |
| Set the Top left corner of the text. More... | |
| virtual void | setVisible (bool isVisible) |
| Set the text visible or invisible. More... | |
| virtual void | setColor (float r, float g, float b, float a) |
| Set the text's color. More... | |
| virtual void | setFont (const std::string &fontFile, float sizeInPoints) |
| Set the font file and size in points to display the text in. More... | |
| virtual bool | visible () const |
| Get the text's visibility status. More... | |
| virtual void | setSize (double x, double y) |
| Set the size of the text box. More... | |
| virtual void | setOverlay (unsigned int overlayId) |
| Set the overlay to draw the attribute on Overlay ids are defined in DtOverlayManager. More... | |
| virtual void | setGroup (unsigned int group) |
| Set the group to draw the atribute on. More... | |
| virtual void | setForegroundGroup (unsigned int group) |
| Set the group to draw the text's foreground on. More... | |
| virtual void | setBackgroundGroup (unsigned int group) |
| Set the group to draw the text's background (shadow) on. More... | |
| virtual float | fontSize () |
| Get the text's font size in points. More... | |
| virtual const std::string & | fontFile () |
| Get the text's font file name. More... | |
| virtual void | setShadowText (bool enabled) |
| Set whether text shadows should be displayed. More... | |
Public Member Functions inherited from makVrv::DtAttribute | |
| DtAttribute () | |
| CTOR. More... | |
| virtual | ~DtAttribute () |
| DTOR. More... | |
Static Public Member Functions | |
| static float | pointsToPixelsAprox (float points) |
| Convert a dimension in points to an approximatation of pixels (The exact correct value depends on monitor DPI) More... | |
Protected Member Functions | |
| void | setStringForText (const DtUnicode &str, DtTextProxy &text) |
| setString for a specific text proxy More... | |
| void | setFontForText (const std::string &fontFile, float sizeInPoints, DtTextProxy &text) |
| setFont for a specific text proxy More... | |
| void | setOffsetForText (double x, double y, DtTextProxy &text) |
| setOffset for a specific text proxy More... | |
| void | setVisibleForText (DtTextProxy &text) |
| set a specific text object visible More... | |
| void | createText () |
| Create the text object. More... | |
Protected Attributes | |
| DtDe & | myDe |
| float | myColorR |
| float | myColorG |
| float | myColorB |
| float | myColorA |
| std::string | myFontFile |
| float | myFontSize |
| float | myWidth |
| float | myOffsetX |
| float | myOffsetY |
| float | myWorldX |
| float | myWorldY |
| float | myWorldZ |
| float | myWorldW |
| double | mySizeX |
| double | mySizeY |
| DtFont::TextAlignement | myAlignment |
| DtTextProxy * | myText |
| DtTextProxy * | myShadowText |
| DtUnicode | myString |
| unsigned int | myOverlayId |
| unsigned int | myForegroundOverlayGroup |
| unsigned int | myBackgroundOverlayGroup |
| bool | myShadowTextFlag |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtAttribute | |
| boost::signal< void(DtAttribute *, double, double)> | signal_sizeChanged |
| Emitted when the attribute's size changes. More... | |
The attribute layout tells DtAttributes where to draw.
| makVrv::DtBaseTextAttribute::DtBaseTextAttribute | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Set the string to render.
|
virtual |
Set the position of the attribute in world space, using vrvGraphics float packing.
Implements makVrv::DtAttribute.
Get the size of the attribute.
Implements makVrv::DtAttribute.
Set the Top left corner of the text.
Reimplemented from makVrv::DtAttribute.
|
virtual |
Set the text visible or invisible.
Implements makVrv::DtAttribute.
Reimplemented in makVrv::DtNumericAttribute, and makVrv::DtTextAttribute.
|
virtual |
Set the text's color.
Implements makVrv::DtAttribute.
|
virtual |
Set the font file and size in points to display the text in.
|
virtual |
Get the text's visibility status.
Implements makVrv::DtAttribute.
Set the size of the text box.
Implements makVrv::DtAttribute.
|
static |
Convert a dimension in points to an approximatation of pixels (The exact correct value depends on monitor DPI)
Set the overlay to draw the attribute on Overlay ids are defined in DtOverlayManager.
Implements makVrv::DtAttribute.
Set the group to draw the atribute on.
This sets the text's foreground and background to use the same (given group ID). Using separate IDs for the text and shadow (via the setForegroundGroup(..) and setBackgroundGroup(..) methods) is recommended in order to avoid cases where the shadow text appears on top of the text itself.
Implements makVrv::DtAttribute.
Set the group to draw the text's foreground on.
Reimplemented from makVrv::DtAttribute.
Set the group to draw the text's background (shadow) on.
Reimplemented from makVrv::DtAttribute.
|
virtual |
Get the text's font size in points.
|
virtual |
Get the text's font file name.
|
virtual |
Set whether text shadows should be displayed.
Implements makVrv::DtAttribute.
|
protected |
setString for a specific text proxy
|
protected |
setFont for a specific text proxy
|
protected |
setOffset for a specific text proxy
|
protected |
set a specific text object visible
|
protected |
Create the text object.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |