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

Public Member Functions | |
| DtOsgWindowTextInstance (DtDe &de) | |
| CTOR. More... | |
| virtual | ~DtOsgWindowTextInstance () |
| DTOR. More... | |
| virtual void | setVisible (bool isVisible) |
| Set the text visible or invisible. More... | |
| virtual void | setTopLeftCorner (float x, float y) |
| Set the Top left corner of the text in normalized screen coordinates (0..1) More... | |
| virtual void | setColor (float r, float g, float b, float a) |
| Set the text's color. More... | |
| virtual void | setText (const std::string &textString) |
| Set the text to display. 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 void | setTextBoxWidth (unsigned int widthInPixels) |
| Set the width of the text box in pixels. More... | |
| virtual void | setAlignment (DtWindowText::TextAlignment alignment) |
| Set the alignment mode of the text. More... | |
| virtual bool | visible () const |
| Get the text's visibility status. More... | |
| virtual void | setTransform (DtMatrix3< double > transform) |
| Sets the line's transform matrix, used to update the position and clockwise rotation of the vertices. More... | |
| virtual void | update () |
| Called on signal_postUpdate; time to update render data. More... | |
Public Member Functions inherited from makVrv::DtWindowTextInstance | |
| virtual | ~DtWindowTextInstance () |
| DTOR. More... | |
Public Member Functions inherited from makVrv::DtSetVisibilityInterface | |
| virtual | ~DtSetVisibilityInterface () |
Protected Member Functions | |
| virtual void | setScale (double x, double y) |
| Set the scale of the lines x y components. More... | |
| virtual void | setClipBox (DtVector2< double > bottomLeftLocation, DtVector2< double > topRightLocation) |
| Set this objects clip box bounds This does not clip text yet. More... | |
| virtual void | slot_releaseResources () |
| Destroy the text when the resources are released since it's fonts won't work anymore. More... | |
| virtual void | slot_onViewCreated () |
| Recreate the text if needed when a new window is created. More... | |
| void | createText () |
| Create the text object. More... | |
| virtual bool | clipTextPosition (osg::Vec2 position) |
| Check whether the position of this text box is within the clip box. More... | |
Protected Attributes | |
| DtDe & | myDe |
| float | myColorR |
| float | myColorG |
| float | myColorB |
| float | myColorA |
| std::string | myFontFile |
| std::string | myTextString |
| DtFontSP | myFont |
| float | mySize |
| float | myWidth |
| osg::Vec2 | myTopLeftPosition |
| osg::Vec2 | myClipBoxBottomLeft |
| osg::Vec2 | myClipBoxTopRight |
| osg::Vec2 | myScale |
| DtFont::TextAlignement | myAlignment |
| DtTextProxy * | myText |
| bool | myIsVisible |
| bool | myGeometryDirty |
| osg::Matrix | myTransform |
vrvGraphics implementation of a 2D text
| makVrv::DtOsgWindowTextInstance::DtOsgWindowTextInstance | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Set the text visible or invisible.
Implements makVrv::DtWindowTextInstance.
|
virtual |
Set the Top left corner of the text in normalized screen coordinates (0..1)
Implements makVrv::DtWindowTextInstance.
|
virtual |
Set the text's color.
Implements makVrv::DtWindowTextInstance.
|
virtual |
Set the text to display.
Implements makVrv::DtWindowTextInstance.
|
virtual |
Set the font file and size in points to display the text in.
Implements makVrv::DtWindowTextInstance.
Set the width of the text box in pixels.
Implements makVrv::DtWindowTextInstance.
|
virtual |
Set the alignment mode of the text.
Implements makVrv::DtWindowTextInstance.
|
virtual |
Get the text's visibility status.
Sets the line's transform matrix, used to update the position and clockwise rotation of the vertices.
Implements makVrv::DtWindowTextInstance.
|
virtual |
Called on signal_postUpdate; time to update render data.
Implements makVrv::DtWindowTextInstance.
Set the scale of the lines x y components.
Implements makVrv::DtWindowTextInstance.
|
protectedvirtual |
Set this objects clip box bounds This does not clip text yet.
Implements makVrv::DtWindowTextInstance.
|
protectedvirtual |
Destroy the text when the resources are released since it's fonts won't work anymore.
|
protectedvirtual |
Recreate the text if needed when a new window is created.
|
protected |
Create the text object.
|
protectedvirtual |
Check whether the position of this text box is within the clip box.
Checks against top left position.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |