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

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

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

Public Member Functions

 DtNumericAttribute (DtDe &de)
 CTOR.
virtual ~DtNumericAttribute ()
 DTOR.
virtual void setVisible (bool isVisible)
 Set the text visible or invisible.
virtual void setNumber (double num)
 Set the number to display.
- Public Member Functions inherited from makVrv::DtBaseTextAttribute
 DtBaseTextAttribute (DtDe &de)
 CTOR.
virtual ~DtBaseTextAttribute ()
 DTOR.
virtual void setString (const DtUnicode &str)
 Set the string to render.
virtual void setPosition (float x, float y, float z, float w)
 Set the position of the attribute in world space, using vrvGraphics float packing.
virtual void getMinSize (double &xOut, double &yOut)
 Get the size of the attribute.
virtual void setOffset (double x, double y)
 Set the Top left corner of the text.
virtual void setColor (float r, float g, float b, float a)
 Set the text's color.
virtual void setFont (const std::string &fontFile, float sizeInPoints)
 Set the font file and size in points to display the text in.
virtual bool visible () const
 Get the text's visibility status.
virtual void setSize (double x, double y)
 Set the size of the text box.
virtual void setOverlay (unsigned int overlayId)
 Set the overlay to draw the attribute on Overlay ids are defined in DtOverlayManager.
virtual void setGroup (unsigned int group)
 Set the group to draw the atribute on.
virtual void setForegroundGroup (unsigned int group)
 Set the group to draw the text's foreground on.
virtual void setBackgroundGroup (unsigned int group)
 Set the group to draw the text's background (shadow) on.
virtual float fontSize ()
 Get the text's font size in points.
virtual const std::string & fontFile ()
 Get the text's font file name.
virtual void setShadowText (bool enabled)
 Set whether text shadows should be displayed.
- Public Member Functions inherited from makVrv::DtAttribute
 DtAttribute ()
 CTOR.
virtual ~DtAttribute ()
 DTOR.

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)
- Public Attributes inherited from makVrv::DtAttribute
boost::signal< void(DtAttribute
*, double, double)> 
signal_sizeChanged
 Emitted when the attribute's size changes.
- Protected Member Functions inherited from makVrv::DtBaseTextAttribute
void setStringForText (const DtUnicode &str, DtTextProxy &text)
 setString for a specific text proxy
void setFontForText (const std::string &fontFile, float sizeInPoints, DtTextProxy &text)
 setFont for a specific text proxy
void setOffsetForText (double x, double y, DtTextProxy &text)
 setOffset for a specific text proxy
void setVisibleForText (DtTextProxy &text)
 set a specific text object visible
void createText ()
 Create the text object.

Detailed Description

The attribute layout tells DtAttributes where to draw.

Constructor & Destructor Documentation

makVrv::DtNumericAttribute::DtNumericAttribute ( DtDe de)

CTOR.

virtual makVrv::DtNumericAttribute::~DtNumericAttribute ( )
virtual

DTOR.

Member Function Documentation

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

Set the text visible or invisible.

Reimplemented from makVrv::DtBaseTextAttribute.

virtual void makVrv::DtNumericAttribute::setNumber ( double  num)
virtual

Set the number to display.

Member Data Documentation

DtUnicode makVrv::DtNumericAttribute::myTextString
protected

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

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)