![]() |
VR-Forces 4.0.4 Class Documentation
|
Model instance to draw 3D text. More...

Classes | |
| struct | TextParameters |
Public Member Functions | |
| Dt3DTextModelInstance (DtDe &de) | |
| CTOR. | |
| virtual | ~Dt3DTextModelInstance () |
| DTOR. | |
| virtual void | setColor (float r, float g, float b) |
| Set the color of the text. | |
| virtual void | setText (const std::string &text) |
| Set the text to display. | |
| virtual void | setFont (const std::string &fontName) |
| Set the font to use. | |
| virtual void | setFontSize (int sizeInPixels) |
| Set the font size in pixels. | |
| virtual bool | realize (DtModelDefinition &definition) |
| Attempt to realize a definition. | |
| virtual void | addToConnector (DtOsgSceneConnector *connector) |
| Tell the model instance to add itself to the provided node. | |
| virtual bool | removeFromConnector (DtOsgSceneConnector *connector) |
| Tell the model instance to remove itself from the provided node. | |
| virtual void | setVisible (bool isVisible) |
| no-op | |
Static Public Attributes | |
| static const TextParameters | defaultParameters |
| Default values for the line parameters. | |
Protected Member Functions | |
| virtual void | build (const TextParameters ¶meters) |
| Build the text geometry from a parameter set. | |
Protected Attributes | |
| TextParameters | myParameters |
| The current parameter set. | |
| osg::ref_ptr< osg::Geode > | myGeode |
Friends | |
| class | Dt3DTextModelInstanceCreator |
Model instance to draw 3D text.
CTOR.
| virtual makVrv::Dt3DTextModelInstance::~Dt3DTextModelInstance | ( | ) | [virtual] |
DTOR.
| virtual void makVrv::Dt3DTextModelInstance::setColor | ( | float | r, |
| float | g, | ||
| float | b | ||
| ) | [virtual] |
Set the color of the text.
| virtual void makVrv::Dt3DTextModelInstance::setText | ( | const std::string & | text | ) | [virtual] |
Set the text to display.
| virtual void makVrv::Dt3DTextModelInstance::setFont | ( | const std::string & | fontName | ) | [virtual] |
Set the font to use.
| virtual void makVrv::Dt3DTextModelInstance::setFontSize | ( | int | sizeInPixels | ) | [virtual] |
Set the font size in pixels.
| virtual bool makVrv::Dt3DTextModelInstance::realize | ( | DtModelDefinition & | definition | ) | [virtual] |
Attempt to realize a definition.
If the model instance can't realize the definition it should return false.
Reimplemented from makVrv::DtModelInstance.
| virtual void makVrv::Dt3DTextModelInstance::addToConnector | ( | DtOsgSceneConnector * | connector | ) | [virtual] |
Tell the model instance to add itself to the provided node.
Reimplemented from makVrv::DtOsgModelInstance.
| virtual bool makVrv::Dt3DTextModelInstance::removeFromConnector | ( | DtOsgSceneConnector * | connector | ) | [virtual] |
Tell the model instance to remove itself from the provided node.
Reimplemented from makVrv::DtOsgModelInstance.
| virtual void makVrv::Dt3DTextModelInstance::setVisible | ( | bool | isVisible | ) | [inline, virtual] |
no-op
Implements makVrv::DtModelInstance.
| virtual void makVrv::Dt3DTextModelInstance::build | ( | const TextParameters & | parameters | ) | [protected, virtual] |
Build the text geometry from a parameter set.
friend class Dt3DTextModelInstanceCreator [friend] |
const TextParameters makVrv::Dt3DTextModelInstance::defaultParameters [static] |
Default values for the line parameters.
The current parameter set.
osg::ref_ptr<osg::Geode> makVrv::Dt3DTextModelInstance::myGeode [protected] |