VR-Forces 4.1.1 Class Documentation
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtOsgWindowTextInstance Class Reference

vrvGraphics implementation of a 2D text More...

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

Public Member Functions

 DtOsgWindowTextInstance (DtDe &de)
 CTOR.
virtual ~DtOsgWindowTextInstance ()
 DTOR.
virtual void setTopLeftCorner (float x, float y)
 Set the Top left corner of the text in normalized screen coordinates (0..1)
virtual void setVisible (bool isVisible)
 Set the text visible or invisible.
virtual void setColor (float r, float g, float b, float a)
 Set the text's color.
virtual void setText (const std::string &textString)
 Set the text to display.
virtual void setFont (const std::string &fontFile, float sizeInPoints)
 Set the font file and size in points to display the text in.
virtual void setTextBoxWidth (unsigned int widthInPixels)
 Set the width of the text box in pixels.
virtual void setAlignment (DtWindowText::TextAlignment alignment)
 Set the alignment mode of the text.
virtual bool visible () const
 Get the text's visibility status.
- Public Member Functions inherited from makVrv::DtWindowTextInstance
virtual ~DtWindowTextInstance ()
 DTOR.
- Public Member Functions inherited from makVrv::DtSetVisibilityInterface
virtual ~DtSetVisibilityInterface ()

Protected Member Functions

void createText ()
 Create the text object.

Protected Attributes

DtDemyDe
float myColorR
float myColorG
float myColorB
float myColorA
std::string myFontFile
std::string myTextString
float mySize
float myWidth
float myTopLeftX
float myTopLeftY
DtFont::TextAlignement myAlignment
DtTextProxymyText

Additional Inherited Members

- Public Types inherited from makVrv::DtWindowTextInstance
typedef std::vector< VertexVertexList

Detailed Description

vrvGraphics implementation of a 2D text

Constructor & Destructor Documentation

makVrv::DtOsgWindowTextInstance::DtOsgWindowTextInstance ( DtDe de)

CTOR.

virtual makVrv::DtOsgWindowTextInstance::~DtOsgWindowTextInstance ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtOsgWindowTextInstance::setTopLeftCorner ( float  x,
float  y 
)
virtual

Set the Top left corner of the text in normalized screen coordinates (0..1)

Implements makVrv::DtWindowTextInstance.

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

Set the text visible or invisible.

Implements makVrv::DtWindowTextInstance.

virtual void makVrv::DtOsgWindowTextInstance::setColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

Set the text's color.

Implements makVrv::DtWindowTextInstance.

virtual void makVrv::DtOsgWindowTextInstance::setText ( const std::string &  textString)
virtual

Set the text to display.

Implements makVrv::DtWindowTextInstance.

virtual void makVrv::DtOsgWindowTextInstance::setFont ( const std::string &  fontFile,
float  sizeInPoints 
)
virtual

Set the font file and size in points to display the text in.

Implements makVrv::DtWindowTextInstance.

virtual void makVrv::DtOsgWindowTextInstance::setTextBoxWidth ( unsigned int  widthInPixels)
virtual

Set the width of the text box in pixels.

Implements makVrv::DtWindowTextInstance.

virtual void makVrv::DtOsgWindowTextInstance::setAlignment ( DtWindowText::TextAlignment  alignment)
virtual

Set the alignment mode of the text.

Implements makVrv::DtWindowTextInstance.

virtual bool makVrv::DtOsgWindowTextInstance::visible ( ) const
virtual

Get the text's visibility status.

void makVrv::DtOsgWindowTextInstance::createText ( )
protected

Create the text object.

Member Data Documentation

DtDe& makVrv::DtOsgWindowTextInstance::myDe
protected
float makVrv::DtOsgWindowTextInstance::myColorR
protected
float makVrv::DtOsgWindowTextInstance::myColorG
protected
float makVrv::DtOsgWindowTextInstance::myColorB
protected
float makVrv::DtOsgWindowTextInstance::myColorA
protected
std::string makVrv::DtOsgWindowTextInstance::myFontFile
protected
std::string makVrv::DtOsgWindowTextInstance::myTextString
protected
float makVrv::DtOsgWindowTextInstance::mySize
protected
float makVrv::DtOsgWindowTextInstance::myWidth
protected
float makVrv::DtOsgWindowTextInstance::myTopLeftX
protected
float makVrv::DtOsgWindowTextInstance::myTopLeftY
protected
DtFont::TextAlignement makVrv::DtOsgWindowTextInstance::myAlignment
protected
DtTextProxy* makVrv::DtOsgWindowTextInstance::myText
protected

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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)