![]() |
VR-Forces 4.0.4 Class Documentation
|
vrvGraphics implementation of a 2D text More...

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 | |
| DtDe & | myDe |
| 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 |
| DtTextProxy * | myText |
vrvGraphics implementation of a 2D text
CTOR.
| virtual makVrv::DtOsgWindowTextInstance::~DtOsgWindowTextInstance | ( | ) | [virtual] |
DTOR.
| 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.
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] |
DtTextProxy* makVrv::DtOsgWindowTextInstance::myText [protected] |