![]() |
VR-Forces 4.0.4 Class Documentation
|
A simple OSG model instance. More...

Public Member Functions | |
| DtOsgSimpleModelInstance (DtDe &de) | |
| CTOR. | |
| DtOsgSimpleModelInstance (DtDe &de, osg::Node *rootNode) | |
| CTOR. | |
| virtual | ~DtOsgSimpleModelInstance () |
| DTOR. | |
| virtual bool | realize (DtModelDefinition &definition) |
| Attempt to realize a definition. | |
| virtual bool | groundClampable () |
| Set whether the model is always oriented up. | |
| virtual bool | alwaysUpright () |
| Set whether the model is always oriented up. | |
| virtual void | setVisible (bool isVisible) |
| no-op | |
| virtual void | setVisibleViaSwitch (bool isVisible) |
| Set whether the model is visible or not. | |
Protected Member Functions | |
| osg::ref_ptr< osg::Node > | loadNodeFile (DtModelDefinition &definition) |
| Load a node from a file, or from the cache if possible. | |
Protected Attributes | |
| bool | myGroundClampable |
| bool | myAlwaysUpright |
| float | myScale |
A simple OSG model instance.
| makVrv::DtOsgSimpleModelInstance::DtOsgSimpleModelInstance | ( | DtDe & | de, |
| osg::Node * | rootNode | ||
| ) |
CTOR.
| virtual makVrv::DtOsgSimpleModelInstance::~DtOsgSimpleModelInstance | ( | ) | [virtual] |
DTOR.
| virtual bool makVrv::DtOsgSimpleModelInstance::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 bool makVrv::DtOsgSimpleModelInstance::groundClampable | ( | ) | [virtual] |
Set whether the model is always oriented up.
| virtual bool makVrv::DtOsgSimpleModelInstance::alwaysUpright | ( | ) | [virtual] |
Set whether the model is always oriented up.
| virtual void makVrv::DtOsgSimpleModelInstance::setVisible | ( | bool | isVisible | ) | [inline, virtual] |
no-op
Implements makVrv::DtModelInstance.
| virtual void makVrv::DtOsgSimpleModelInstance::setVisibleViaSwitch | ( | bool | isVisible | ) | [inline, virtual] |
Set whether the model is visible or not.
Reimplemented from makVrv::DtOsgModelInstance.
| osg::ref_ptr<osg::Node> makVrv::DtOsgSimpleModelInstance::loadNodeFile | ( | DtModelDefinition & | definition | ) | [protected] |
Load a node from a file, or from the cache if possible.
float makVrv::DtOsgSimpleModelInstance::myScale [protected] |