![]() |
VR-Forces 4.0.4 Class Documentation
|
A DtSpeedTreeModelInstance is a type of model instance that can get created for a DtTreeModel. More...

Public Member Functions | |
| DtSpeedTreeModelInstance (DtDe &de) | |
| CTOR. | |
| virtual | ~DtSpeedTreeModelInstance () |
| DTOR. | |
| virtual bool | realize (DtModelDefinition &definition) |
| Attempt to realize a definition. | |
| virtual osg::Node * | rootNode () |
| Get the model instance's root node. This will always return null. | |
| virtual void | setVisible (bool isVisible) |
| no-op | |
A DtSpeedTreeModelInstance is a type of model instance that can get created for a DtTreeModel.
A DtSpeedTreeModelInstance exists to return a a null rootNode() and therefore let a DtSpeedTreeForest know to create a SpeedTree instead of a normal tree. DtTreeModels produce "normal" trees which are added to a DtOsgForest however, if the SpeedTree plugin is loaded, then a DtTreeModel creates a DtSpeedTreeModelInstance when a tree is added to a DtSpeedTreeForest. When the model instance is created a DtModelInstanceOwner emits a signal saying so.
| virtual makVrv::DtSpeedTreeModelInstance::~DtSpeedTreeModelInstance | ( | ) | [virtual] |
DTOR.
| virtual bool makVrv::DtSpeedTreeModelInstance::realize | ( | DtModelDefinition & | definition | ) | [virtual] |
Attempt to realize a definition.
If the model instance can't realize the definition it should return false. This will return false if the definition doesn't contain a "speedTreeFilename" parameter;
Reimplemented from makVrv::DtModelInstance.
| virtual osg::Node* makVrv::DtSpeedTreeModelInstance::rootNode | ( | ) | [virtual] |
Get the model instance's root node. This will always return null.
Reimplemented from makVrv::DtOsgModelInstance.
| virtual void makVrv::DtSpeedTreeModelInstance::setVisible | ( | bool | isVisible | ) | [inline, virtual] |
no-op
Implements makVrv::DtModelInstance.