An OSG Implementation of DtWindowTextInstance. Uses a vrvGraphics DtTextProxy to implement 2D text.
| makVrv::DtOsgWindowTextInstance::DtOsgWindowTextInstance |
( |
DtDe & |
de | ) |
|
| virtual makVrv::DtOsgWindowTextInstance::~DtOsgWindowTextInstance |
( |
| ) |
|
|
virtual |
| virtual void makVrv::DtOsgWindowTextInstance::setVisible |
( |
bool |
isVisible | ) |
|
|
virtual |
| virtual void makVrv::DtOsgWindowTextInstance::setTopLeftCorner |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
virtual |
| virtual bool makVrv::DtOsgWindowTextInstance::calculateSize |
( |
float & |
width, |
|
|
float & |
height |
|
) |
| const |
|
virtual |
| virtual void makVrv::DtOsgWindowTextInstance::setColor |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b, |
|
|
float |
a |
|
) |
| |
|
virtual |
| virtual void makVrv::DtOsgWindowTextInstance::setText |
( |
const std::string & |
textString | ) |
|
|
virtual |
| virtual void makVrv::DtOsgWindowTextInstance::setFont |
( |
const std::string & |
fontFilePath, |
|
|
float |
sizeInPoints |
|
) |
| |
|
virtual |
| virtual void makVrv::DtOsgWindowTextInstance::setTextBoxWidth |
( |
float |
widthInPixels | ) |
|
|
virtual |
| virtual bool makVrv::DtOsgWindowTextInstance::visible |
( |
| ) |
const |
|
virtual |
Get the text's visibility status.
| virtual void makVrv::DtOsgWindowTextInstance::setTransform |
( |
DtMatrix3< double > |
transform | ) |
|
|
virtual |
Sets the line's transform matrix, used to update the position and clockwise rotation of the vertices.
Implements makVrv::DtWindowTextInstance.
| virtual void makVrv::DtOsgWindowTextInstance::update |
( |
| ) |
|
|
virtual |
| virtual void makVrv::DtOsgWindowTextInstance::setGroup |
( |
int |
groupId | ) |
|
|
virtual |
Set this object's group ID for z order. The higher the Z order the "closer" the element will be drawn to the eye point.
Implements makVrv::DtWindowTextInstance.
| virtual void makVrv::DtOsgWindowTextInstance::setChannelOverlay |
( |
const std::string & |
displayName, |
|
|
const std::string & |
windowName, |
|
|
const std::string & |
channelName |
|
) |
| |
|
overridevirtual |
By default window objects are placed on the RemoteDisplayWorldOverlay, which is rendered on all channels that have the "showRemoteGraphics" channel keyword. If a user wishes to draw a specific window object on a specific channel, use this method. This does not work for remote displays.
Implements makVrv::DtWindowTextInstance.
| void makVrv::DtOsgWindowTextInstance::createText |
( |
| ) |
|
| virtual void makVrv::DtOsgWindowTextInstance::slot_releaseResources |
( |
| ) |
|
|
protectedvirtual |
Destroy the text when the resources are released since it's fonts won't work anymore.
Destroy the text when the channel its being rendered on is going to be destroyed.
| virtual void makVrv::DtOsgWindowTextInstance::slot_onViewCreated |
( |
| ) |
|
|
protectedvirtual |
Recreate the text if needed when a new window is created.
| virtual bool makVrv::DtOsgWindowTextInstance::clipTextPosition |
( |
osg::Vec2 |
position | ) |
|
|
protectedvirtual |
Check whether the position of this text box is within the clip box. Checks against top left position.
| 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 |
| std::string makVrv::DtOsgWindowTextInstance::myDisplayName |
|
protected |
| std::string makVrv::DtOsgWindowTextInstance::myWindowName |
|
protected |
| std::string makVrv::DtOsgWindowTextInstance::myChannelName |
|
protected |
| float makVrv::DtOsgWindowTextInstance::mySize |
|
protected |
| float makVrv::DtOsgWindowTextInstance::myWidth |
|
protected |
| osg::Vec2 makVrv::DtOsgWindowTextInstance::myTopLeftPosition |
|
protected |
| osg::Vec2 makVrv::DtOsgWindowTextInstance::myClipBoxBottomLeft |
|
protected |
| osg::Vec2 makVrv::DtOsgWindowTextInstance::myClipBoxTopRight |
|
protected |
| bool makVrv::DtOsgWindowTextInstance::myIsVisible |
|
protected |
| bool makVrv::DtOsgWindowTextInstance::myGeometryDirty |
|
protected |
| bool makVrv::DtOsgWindowTextInstance::myUseChannelOverlay |
|
protected |
| osg::Matrix makVrv::DtOsgWindowTextInstance::myTransform |
|
protected |
| int makVrv::DtOsgWindowTextInstance::myGroup |
|
protected |
| boost::signalslib::connection makVrv::DtOsgWindowTextInstance::myViewCreatedConnection |
|
protected |
The documentation for this class was generated from the following file: