![]() |
VR-Forces Developer's Guide
|
The attribute layout tells DtAttributes where to draw.

Public Member Functions | |
| virtual | ~DtBaseTextAttribute () |
| DtBaseTextAttribute ()=delete | |
| DtBaseTextAttribute (const DtBaseTextAttribute &other)=delete | |
| DtBaseTextAttribute & | operator= (const DtBaseTextAttribute &other)=delete |
| virtual void | setString (const DtUnicode &str) |
| virtual void | setPosition (float x, float y, float z, float w) |
| virtual void | getMinSize (double &xOut, double &yOut) |
| virtual void | setOffset (double x, double y) |
| virtual void | setVisible (bool isVisible) |
| virtual void | setLodOutAltitude (double lodOutAltitude) |
| virtual double | lodOutAltitude () const |
| virtual void | setIsLodOutAltitudeEnabled (bool isEnabled) |
| virtual bool | isLodOutAltitudeEnabled () const |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | setFont (const std::string &fontFile, float sizeInPoints) |
| virtual bool | visible () const |
| virtual void | setSize (double x, double y) |
| virtual void | setOverlay (unsigned int overlayId) |
| virtual void | setGroup (unsigned int group) |
| virtual void | setForegroundGroup (unsigned int group) |
| virtual void | setBackgroundGroup (unsigned int group) |
| virtual float | fontSize () |
| virtual const std::string & | fontFile () |
| virtual void | setShadowText (bool enabled) |
Public Member Functions inherited from makVrv::DtAttribute | |
| DtAttribute () | |
| virtual | ~DtAttribute () |
| DtAttribute (const DtAttribute &other)=delete | |
| DtAttribute & | operator= (const DtAttribute &other)=delete |
Static Public Member Functions | |
| static float | pointsToPixelsAprox (float points) |
Protected Member Functions | |
| DtBaseTextAttribute (DtDe &de) | |
| virtual void | setStringForText (const DtUnicode &str, DtTextProxyInterface &text) |
| virtual void | setFontForText (const std::string &fontFile, float sizeInPoints, DtTextProxyInterface &text) |
| virtual void | setOffsetForText (double x, double y, DtTextProxyInterface &text) |
| virtual void | setVisibleForText (DtTextProxyInterface &text) |
| virtual void | createText () |
Protected Attributes | |
| DtDe & | myDe |
| float | myColorR |
| float | myColorG |
| float | myColorB |
| float | myColorA |
| std::string | myFontFile |
| double | myLodOutAltitude |
| bool | myIsLodOutAltitudeEnabled |
| float | myFontSize |
| float | myWidth |
| float | myOffsetX |
| float | myOffsetY |
| float | myWorldX |
| float | myWorldY |
| float | myWorldZ |
| float | myWorldW |
| double | mySizeX |
| double | mySizeY |
| DtFont::TextAlignment | myAlignment |
| DtTextProxyInterface * | myText |
| DtTextProxyInterface * | myShadowText |
| DtUnicode | myString |
| unsigned int | myOverlayId |
| unsigned int | myForegroundOverlayGroup |
| unsigned int | myBackgroundOverlayGroup |
| bool | myShadowTextFlag |
Private Attributes | |
| friend | DtBaseTextAttributeCreator |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtAttribute | |
| boost::signalslib::signal < void(DtAttribute *, double, double)> | signal_sizeChanged |
|
virtual |
DTOR.
|
delete |
Default Constructor not implemented.
|
delete |
Copy Constructor not implemented - Copy not allowed.
|
protected |
Protected CTOR Use DtBaseTextAttributeCreator to create an instance of this class.
|
delete |
Assignment Operator not implemented - Assignment not allowed.
|
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 altitude, in meters, at which this attribute no longer appears.
Implements makVrv::DtAttribute.
|
virtual |
Get the altitude, in meters, at which this attribute no longer appears.
Implements makVrv::DtAttribute.
|
virtual |
Set whether or not this attribute will use the LOD Out Altitude property.
Implements makVrv::DtAttribute.
|
virtual |
Get whether or not this attribute will use the LOD Out Altitude property.
Implements makVrv::DtAttribute.
|
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.
|
protectedvirtual |
setString for a specific text proxy
|
protectedvirtual |
setFont for a specific text proxy
|
protectedvirtual |
setOffset for a specific text proxy
|
protectedvirtual |
set a specific text object visible
|
protectedvirtual |
Create the text object.
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |