VR-Forces 4.0.4 Class Documentation
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]

List of all members.

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.

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

Detailed Description

vrvGraphics implementation of a 2D text


Constructor & Destructor Documentation

CTOR.

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.

Set the alignment mode of the text.

Implements makVrv::DtWindowTextInstance.

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

Get the text's visibility status.

Create the text object.


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)