VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
makVrv::DtTextAttribute Class Reference

The attribute layout tells DtAttributes where to draw. More...

Inheritance diagram for makVrv::DtTextAttribute:
Inheritance graph
[legend]

Public Member Functions

 DtTextAttribute (DtDe &de)
 CTOR. More...
 
virtual ~DtTextAttribute ()
 DTOR. More...
 
virtual void setVisible (bool isVisible)
 Set the text visible or invisible. More...
 
virtual void setText (const DtUnicode &textString)
 Set the text to display. More...
 
virtual const DtUnicodetext () const
 Get the currently set text. More...
 
- Public Member Functions inherited from makVrv::DtBaseTextAttribute
 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 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...
 

Protected Attributes

DtUnicode myTextString
 
- Protected Attributes inherited from makVrv::DtBaseTextAttribute
DtDemyDe
 
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
 
DtTextProxymyText
 
DtTextProxymyShadowText
 
DtUnicode myString
 
unsigned int myOverlayId
 
unsigned int myForegroundOverlayGroup
 
unsigned int myBackgroundOverlayGroup
 
bool myShadowTextFlag
 

Additional Inherited Members

- Static Public Member Functions inherited from makVrv::DtBaseTextAttribute
static float pointsToPixelsAprox (float points)
 Convert a dimension in points to an approximatation of pixels (The exact correct value depends on monitor DPI) More...
 
- Public Attributes inherited from makVrv::DtAttribute
boost::signalslib::signal
< void(DtAttribute *, double,
double)> 
signal_sizeChanged
 Emitted when the attribute's size changes. More...
 
- Protected Member Functions inherited from makVrv::DtBaseTextAttribute
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...
 

Detailed Description

The attribute layout tells DtAttributes where to draw.

Constructor & Destructor Documentation

makVrv::DtTextAttribute::DtTextAttribute ( DtDe de)

CTOR.

virtual makVrv::DtTextAttribute::~DtTextAttribute ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtTextAttribute::setVisible ( bool  isVisible)
virtual

Set the text visible or invisible.

Reimplemented from makVrv::DtBaseTextAttribute.

virtual void makVrv::DtTextAttribute::setText ( const DtUnicode textString)
virtual

Set the text to display.

virtual const DtUnicode& makVrv::DtTextAttribute::text ( ) const
virtual

Get the currently set text.

Member Data Documentation

DtUnicode makVrv::DtTextAttribute::myTextString
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)