![]() |
VR-Forces 4.0.4 Class Documentation
|
A model of a decal ribbon. More...

Public Member Functions | |
| DtOsgDecalModel (DtDe &de, DtUniqueID id) | |
| CTOR. | |
| virtual | ~DtOsgDecalModel () |
| DTOR. | |
| virtual void | setModelDefinition (const std::string &str) |
| Override the default model definition function. | |
| virtual void | setModelInstance (DtModelInstance *modelInstance) |
| Override to provide casted pointer. | |
| virtual std::string | className () const |
| Get the class name of the model instance owner. | |
| virtual void | setOrientation (int vtx, const DtTaitBryan &ori) |
| Set the orientation of the model. | |
| virtual void | setPosition (int vtx, const DtVector &pos) |
| Set the position of the model. | |
| virtual void | addToScene (const DtUniqueID &id, int modelSet, int visualizerType) |
| Add the animation to the scene, as part of the scene object with the specified unique ID. | |
| virtual void | removeFromScene () |
| Remove the animation from the scene. | |
| virtual void | setOcclusionEnabled (bool enabled) |
| Enable or disable occlusion of the ribbon by other objects in the scene. | |
| virtual void | setColor (float r, float g, float b, float a) |
| set the model's color | |
| virtual void | initializeModelInstance () |
| Push any state maintained by the model to the model instance. | |
| virtual void | setVisible (bool isVisible) |
| Override to call setVisible on the scene connector. | |
| virtual void | setSolid (bool solid) |
| Set the geometry of the model as solid. | |
| virtual void | update () |
| Update the position of the ribbon. | |
Protected Attributes | |
| DtOsgSceneConnector * | mySceneConnector |
| DtDecalModelInstance * | myDecalModelCast |
| bool | myOcclusionEnabled |
| bool | myColorSet |
| osg::Vec4 | myColor |
A model of a decal ribbon.
| makVrv::DtOsgDecalModel::DtOsgDecalModel | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
| virtual makVrv::DtOsgDecalModel::~DtOsgDecalModel | ( | ) | [virtual] |
DTOR.
| virtual void makVrv::DtOsgDecalModel::setModelDefinition | ( | const std::string & | str | ) | [virtual] |
Override the default model definition function.
Implements makVrv::DtDecalModel.
| virtual void makVrv::DtOsgDecalModel::setModelInstance | ( | DtModelInstance * | modelInstance | ) | [virtual] |
Override to provide casted pointer.
Reimplemented from makVrv::DtModel.
| virtual std::string makVrv::DtOsgDecalModel::className | ( | ) | const [virtual] |
Get the class name of the model instance owner.
This is used to control how model instances are created.
Implements makVrv::DtDecalModel.
| virtual void makVrv::DtOsgDecalModel::setOrientation | ( | int | vtx, |
| const DtTaitBryan & | ori | ||
| ) | [virtual] |
Set the orientation of the model.
Reimplemented from makVrv::DtModel.
| virtual void makVrv::DtOsgDecalModel::setPosition | ( | int | vtx, |
| const DtVector & | pos | ||
| ) | [virtual] |
Set the position of the model.
Reimplemented from makVrv::DtModel.
| virtual void makVrv::DtOsgDecalModel::addToScene | ( | const DtUniqueID & | id, |
| int | modelSet, | ||
| int | visualizerType | ||
| ) | [virtual] |
Add the animation to the scene, as part of the scene object with the specified unique ID.
Implements makVrv::DtModel.
| virtual void makVrv::DtOsgDecalModel::removeFromScene | ( | ) | [virtual] |
Remove the animation from the scene.
Implements makVrv::DtModel.
| virtual void makVrv::DtOsgDecalModel::setOcclusionEnabled | ( | bool | enabled | ) | [virtual] |
Enable or disable occlusion of the ribbon by other objects in the scene.
Implements makVrv::DtDecalModel.
| virtual void makVrv::DtOsgDecalModel::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
set the model's color
Reimplemented from makVrv::DtModel.
| virtual void makVrv::DtOsgDecalModel::initializeModelInstance | ( | ) | [virtual] |
Push any state maintained by the model to the model instance.
Reimplemented from makVrv::DtModel.
| virtual void makVrv::DtOsgDecalModel::setVisible | ( | bool | isVisible | ) | [virtual] |
Override to call setVisible on the scene connector.
Reimplemented from makVrv::DtModel.
| virtual void makVrv::DtOsgDecalModel::setSolid | ( | bool | solid | ) | [virtual] |
Set the geometry of the model as solid.
Implements makVrv::DtModel.
| virtual void makVrv::DtOsgDecalModel::update | ( | ) | [virtual] |
Update the position of the ribbon.
Implements makVrv::DtDecalModel.
bool makVrv::DtOsgDecalModel::myOcclusionEnabled [protected] |
bool makVrv::DtOsgDecalModel::myColorSet [protected] |
osg::Vec4 makVrv::DtOsgDecalModel::myColor [protected] |