![]() |
VR-Forces 4.0.4 Class Documentation
|
DtOsg3DTextModel is a model class for creating attachable projected text. More...

Public Member Functions | |
| DtOsg3DTextModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtOsg3DTextModel () |
| virtual void | setVisible (bool visible) |
| Set the model visible or invisible. | |
| virtual void | setPosition (int vtx, const DtVector &position) |
| Set the position of a control vertex in the model. | |
| virtual void | setOrientation (int vtx, const DtTaitBryan &orientation) |
| Set the orientation of a vertex in the model. | |
| virtual void | setColor (float r, float g, float b, float a) |
| Set the text's color in RGBA. | |
| virtual void | setFont (const std::string &fontName) |
| Set the font for the 3D text. | |
| virtual void | setFontSize (double size) |
| Set the font size in pixels. | |
| virtual void | setText (const std::string &text) |
| Set the text to display. | |
| virtual void | setModelDefinition (const std::string &modelDefinition) |
| Set the model definition. | |
| virtual void | setSolid (bool solid) |
| Set whether or not other scene objects can ground clamp to this model Default implementation does nothing. | |
Protected Member Functions | |
| virtual void | addToScene (const DtUniqueID &sceneObjectId, int modelSet, int visualizerType) |
| Virtual Functions to be implemented, add this model to the scene. | |
| virtual void | removeFromScene () |
| Virtual Functions to be implemented, remove this model from the scene. | |
| virtual void | setModelInstance (DtModelInstance *modelInstance) |
| Internally set the model instance pointer. | |
Protected Attributes | |
| DtOsgSceneConnector * | mySceneConnector |
| Dt3DTextModelInstance * | myTextModelInstance |
DtOsg3DTextModel is a model class for creating attachable projected text.
It creates its own model instance.
| makVrv::DtOsg3DTextModel::DtOsg3DTextModel | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
| virtual makVrv::DtOsg3DTextModel::~DtOsg3DTextModel | ( | ) | [virtual] |
| virtual void makVrv::DtOsg3DTextModel::setVisible | ( | bool | isVisible | ) | [virtual] |
Set the model visible or invisible.
Reimplemented from makVrv::DtModel.
| virtual void makVrv::DtOsg3DTextModel::setPosition | ( | int | vtx, |
| const DtVector & | position | ||
| ) | [virtual] |
Set the position of a control vertex in the model.
Reimplemented from makVrv::DtModel.
| virtual void makVrv::DtOsg3DTextModel::setOrientation | ( | int | vtx, |
| const DtTaitBryan & | orientation | ||
| ) | [virtual] |
Set the orientation of a vertex in the model.
Reimplemented from makVrv::DtModel.
| virtual void makVrv::DtOsg3DTextModel::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Set the text's color in RGBA.
Implements makVrv::Dt3DTextModel.
| virtual void makVrv::DtOsg3DTextModel::setFont | ( | const std::string & | fontName | ) | [virtual] |
Set the font for the 3D text.
Implements makVrv::Dt3DTextModel.
| virtual void makVrv::DtOsg3DTextModel::setFontSize | ( | double | size | ) | [virtual] |
Set the font size in pixels.
Implements makVrv::Dt3DTextModel.
| virtual void makVrv::DtOsg3DTextModel::setText | ( | const std::string & | text | ) | [virtual] |
Set the text to display.
Implements makVrv::Dt3DTextModel.
| virtual void makVrv::DtOsg3DTextModel::setModelDefinition | ( | const std::string & | str | ) | [virtual] |
Set the model definition.
Reimplemented from makVrv::DtModel.
| virtual void makVrv::DtOsg3DTextModel::setSolid | ( | bool | isSolid | ) | [virtual] |
Set whether or not other scene objects can ground clamp to this model Default implementation does nothing.
Implements makVrv::DtModel.
| virtual void makVrv::DtOsg3DTextModel::addToScene | ( | const DtUniqueID & | sceneObjectId, |
| int | modelSet, | ||
| int | visualizerType | ||
| ) | [protected, virtual] |
Virtual Functions to be implemented, add this model to the scene.
Implements makVrv::DtModel.
| virtual void makVrv::DtOsg3DTextModel::removeFromScene | ( | ) | [protected, virtual] |
Virtual Functions to be implemented, remove this model from the scene.
Implements makVrv::DtModel.
| virtual void makVrv::DtOsg3DTextModel::setModelInstance | ( | DtModelInstance * | modelInstance | ) | [protected, virtual] |
Internally set the model instance pointer.
If an existing model instance is set, it will be deleted. To clear the current model instance only, passing a Null pointer 0 is supported.
| Input | |
| modelInstance | pointer to a model instance. |
Reimplemented from makVrv::DtModel.