![]() |
VR-Forces 4.0.4 Class Documentation
|
A DtTreeModel owns the DtModelInstance of a tree instance. More...

Public Member Functions | |
| virtual | ~DtTreeModel () |
| DTOR. | |
| virtual void | setModelDefinition (const std::string &str) |
| Set the model definition. | |
| virtual std::string | className () const |
| Get the class name of the model instance owner. | |
| virtual void | slot_modelInstanceCreated (DtModelInstance *instance) |
| Slot called when DtTreeModel gets a model instance associated with it. | |
| virtual void | slot_modelInstanceToBeDestroyed (DtModelInstance *instance) |
| Slot called right before a DtTreeModel has it's model instance deleted. | |
| 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 | setSolid (bool soild) |
| Make the tree geometry solid. | |
Public Attributes | |
| boost::signal< void(const std::string &)> | signal_treeModelInstanceToBeDestroyed |
| Signal emitted when the model instance is going to be destroyed. | |
| boost::signal< void(const std::string &)> | signal_treeModelInstanceCreated |
| Signal emitted when the model instance is created. | |
Protected Member Functions | |
| DtTreeModel (DtDe &de, DtUniqueID id) | |
| CTOR Constructor is protected because this class is created via the creator pattern. | |
Friends | |
| class | DtTreeModelCreator |
| class | DtTreeModelClassesCreator |
A DtTreeModel owns the DtModelInstance of a tree instance.
| virtual makVrv::DtTreeModel::~DtTreeModel | ( | ) | [virtual] |
DTOR.
| makVrv::DtTreeModel::DtTreeModel | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) | [protected] |
CTOR Constructor is protected because this class is created via the creator pattern.
| virtual void makVrv::DtTreeModel::setModelDefinition | ( | const std::string & | str | ) | [virtual] |
Set the model definition.
Reimplemented from makVrv::DtModel.
| virtual std::string makVrv::DtTreeModel::className | ( | ) | const [virtual] |
Get the class name of the model instance owner.
This is used to control how model instances are created.
Reimplemented from makVrv::DtModel.
Reimplemented in makVrv::DtSpeedTreeModel.
| virtual void makVrv::DtTreeModel::slot_modelInstanceCreated | ( | DtModelInstance * | instance | ) | [virtual] |
Slot called when DtTreeModel gets a model instance associated with it.
| virtual void makVrv::DtTreeModel::slot_modelInstanceToBeDestroyed | ( | DtModelInstance * | instance | ) | [virtual] |
Slot called right before a DtTreeModel has it's model instance deleted.
| virtual void makVrv::DtTreeModel::addToScene | ( | const DtUniqueID & | sceneObjectId, |
| int | modelSet, | ||
| int | visualizerType | ||
| ) | [virtual] |
Virtual Functions to be implemented, add this model to the scene.
Implements makVrv::DtModel.
| virtual void makVrv::DtTreeModel::removeFromScene | ( | ) | [virtual] |
Virtual Functions to be implemented, remove this model from the scene.
Implements makVrv::DtModel.
| virtual void makVrv::DtTreeModel::setSolid | ( | bool | soild | ) | [virtual] |
Make the tree geometry solid.
Implements makVrv::DtModel.
friend class DtTreeModelCreator [friend] |
friend class DtTreeModelClassesCreator [friend] |
| boost::signal<void (const std::string&)> makVrv::DtTreeModel::signal_treeModelInstanceToBeDestroyed |
Signal emitted when the model instance is going to be destroyed.
| boost::signal<void (const std::string&)> makVrv::DtTreeModel::signal_treeModelInstanceCreated |
Signal emitted when the model instance is created.