![]() |
VR-Forces 4.0.4 Class Documentation
|
OSG-specific instance of an attachable, projected text model (as used for HAT lines) More...

Public Member Functions | |
| DtProjectedTextModelInstance (DtDe &de, const std::string &uniqueName) | |
| CTOR. | |
| ~DtProjectedTextModelInstance () | |
| DTOR. | |
| virtual void | addToConnector (DtOsgSceneConnector *connector) |
| Implementation of model instance function Add the draw model instance to a node in the scene graph. | |
| virtual bool | removeFromConnector (DtOsgSceneConnector *connector) |
| Implementation of model instance function Remove the draw model instance from a node in the scene graph. | |
| virtual void | setColor (const osg::Vec4 &color) |
| virtual void | setFontName (const std::string &fontName) |
| virtual void | setFontSize (double size) |
| virtual void | setText (const std::string &text) |
| virtual void | setPosition (int vtx, const DtVector &position) |
| virtual void | setVisible (bool visible) |
| no-op | |
Protected Member Functions | |
| DtChannel * | findChannelWithLocation (const osg::Vec3d &location) const |
| bool | locationInChannel (DtChannel *channel, const osg::Vec3d &location) const |
| void | getChannelDimensions (DtChannel *channel, double &startX, double &startY, double &endX, double &endY) const |
Protected Attributes | |
| osg::ref_ptr< osgText::Text > | myTextDrawable |
| osg::ref_ptr< osg::Geode > | myTextGeode |
| std::string | myFontName |
| osg::Vec4 | myColor |
| double | mySize |
| std::string | myUniqueName |
OSG-specific instance of an attachable, projected text model (as used for HAT lines)
| makVrv::DtProjectedTextModelInstance::DtProjectedTextModelInstance | ( | DtDe & | de, |
| const std::string & | uniqueName | ||
| ) |
CTOR.
| virtual void makVrv::DtProjectedTextModelInstance::addToConnector | ( | DtOsgSceneConnector * | connector | ) | [virtual] |
Implementation of model instance function Add the draw model instance to a node in the scene graph.
Reimplemented from makVrv::DtOsgModelInstance.
| virtual bool makVrv::DtProjectedTextModelInstance::removeFromConnector | ( | DtOsgSceneConnector * | connector | ) | [virtual] |
Implementation of model instance function Remove the draw model instance from a node in the scene graph.
Reimplemented from makVrv::DtOsgModelInstance.
| virtual void makVrv::DtProjectedTextModelInstance::setColor | ( | const osg::Vec4 & | color | ) | [virtual] |
| virtual void makVrv::DtProjectedTextModelInstance::setFontName | ( | const std::string & | fontName | ) | [virtual] |
| virtual void makVrv::DtProjectedTextModelInstance::setFontSize | ( | double | size | ) | [virtual] |
| virtual void makVrv::DtProjectedTextModelInstance::setText | ( | const std::string & | text | ) | [virtual] |
| virtual void makVrv::DtProjectedTextModelInstance::setPosition | ( | int | vtx, |
| const DtVector & | position | ||
| ) | [virtual] |
| virtual void makVrv::DtProjectedTextModelInstance::setVisible | ( | bool | visible | ) | [inline, virtual] |
no-op
Implements makVrv::DtModelInstance.
| DtChannel* makVrv::DtProjectedTextModelInstance::findChannelWithLocation | ( | const osg::Vec3d & | location | ) | const [protected] |
| bool makVrv::DtProjectedTextModelInstance::locationInChannel | ( | DtChannel * | channel, |
| const osg::Vec3d & | location | ||
| ) | const [protected] |
| void makVrv::DtProjectedTextModelInstance::getChannelDimensions | ( | DtChannel * | channel, |
| double & | startX, | ||
| double & | startY, | ||
| double & | endX, | ||
| double & | endY | ||
| ) | const [protected] |
osg::ref_ptr<osgText::Text> makVrv::DtProjectedTextModelInstance::myTextDrawable [protected] |
osg::ref_ptr<osg::Geode> makVrv::DtProjectedTextModelInstance::myTextGeode [protected] |
std::string makVrv::DtProjectedTextModelInstance::myFontName [protected] |
osg::Vec4 makVrv::DtProjectedTextModelInstance::myColor [protected] |
double makVrv::DtProjectedTextModelInstance::mySize [protected] |
std::string makVrv::DtProjectedTextModelInstance::myUniqueName [protected] |