VR-Forces 4.0.4 Class Documentation
Public Member Functions | Public Attributes | Protected Member Functions | Friends
makVrv::DtTreeModel Class Reference

A DtTreeModel owns the DtModelInstance of a tree instance. More...

Inheritance diagram for makVrv::DtTreeModel:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

A DtTreeModel owns the DtModelInstance of a tree instance.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

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.


Friends And Related Function Documentation

friend class DtTreeModelCreator [friend]
friend class DtTreeModelClassesCreator [friend]

Member Data Documentation

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.


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)