![]() |
VR-Forces 4.1.1 Class Documentation
|
DtOsgForest provides a way to make lots of trees. More...

Public Types | |
| typedef std::map< DtUniqueID, osg::PositionAttitudeTransform * > | TreePatMap |
Public Types inherited from makVrv::DtForestObject | |
| typedef std::map< DtUniqueID, DtTreeRecord > | TreeRecordMap |
| typedef std::map< std::string, DtTreeModel * > | TreeModelMap |
Public Member Functions | |
| virtual | ~DtOsgForest () |
| Destructor. | |
Driver bound methods | |
These methods are bound to the driver. | |
| virtual void | removeTree (DtUniqueID id) |
| Remove a tree from the forest. | |
| virtual void | removeAllTrees () |
| Remove all trees. | |
| virtual void | setTreeClippingPlane (float fFar) |
| Set the distance that trees are clipped. | |
| virtual void | setTreeLodDistances (float fNear, float fFar) |
| Set the distances for tree LOD's. | |
| virtual void | getTreeClippingPlane (float &fFar) |
| Get the distance that trees are clipped. | |
| virtual void | getTreeLodDistances (float &fNear, float &fFar) |
| Get the distances for tree LOD's. | |
| virtual void | setPerformanceProfile (int profile) |
| Set the performance profile for the forest. | |
Unbound methods | |
These methods are NOT bound to the driver. | |
| virtual void | addUniqueTree (const DtTreeRecord &record) |
| Add a tree to the forest. | |
| unsigned int | treeCount () const |
| Get the number of trees. | |
| virtual DtTreeRecord * | findTreeRecord (DtUniqueID id) |
| Find a DtTreeRecord based on it's id. | |
| virtual DtTreeModel * | findTreeModel (const std::string &modelDef) |
| Find a DtTreeModel from a model definition name. | |
| virtual DtModelInstance * | findModelInstance (const std::string &modelDef) |
| Find a DtModelInstance from a model definition name. | |
| virtual osg::Group * | rootGroup () |
| Get the root group node. | |
Public Member Functions inherited from makVrv::DtForestObject | |
| virtual | ~DtForestObject () |
| Destructor. | |
| virtual DtDe & | de () |
| IG accessor. | |
| void | addTree (const DtTreeRecord &record) |
| Add a tree to the forest. | |
| virtual DtModelDefinition * | findModelDefinition (const std::string &modelDef) |
| Find a DtModelDefinition* from the model definition name. | |
| virtual const TreeRecordMap & | treeRecordMap () const |
| Return the treeRecordMap. | |
Protected Member Functions | |
| DtOsgForest (DtDe &de, DtUniqueID id) | |
| Constructor is protected because this class is created via the creator pattern. | |
| virtual bool | createTree (const DtTreeRecord &record) |
| Create a Tree instance and add it to the group root node. | |
| virtual osg::PositionAttitudeTransform * | createPat (const DtTreeRecord &record) |
| virtual DtOsgModelInstance * | findOsgModelInstance (const std::string &modelDef) |
| Find a DtOsgModelInstance from a model definition name. | |
| virtual osg::PositionAttitudeTransform * | findPat (const DtUniqueID id) |
| Find a osg::PositionAttitudeTransform* from an id. | |
| virtual void | removePat (const DtUniqueID id) |
| Find a osg::PositionAttitudeTransform* from an id. | |
| virtual void | slot_treeModelInstanceToBeDestroyed (const std::string &modelDef) |
| Called when the model instance for a particular model definition is about to be destroyed. | |
| virtual void | removeTreeModel (const std::string &modelDef) |
| Remove a DtTreeModel of a particular model definition. | |
| virtual void | slot_treeModelInstanceCreated (const std::string &modelDef) |
| Called when the model instance for a particular model definition is created. | |
Protected Member Functions inherited from makVrv::DtForestObject | |
| DtForestObject (DtDe &de, DtUniqueID id) | |
| Constructor is protected because this class is created via the creator pattern. | |
| virtual DtTreeModel * | castUpdaterToTreeModel (DtAgentUpdateResolverInterface *updater) |
| Casts a DtAgentUpdateResolverInterface to a DtTreeModel. | |
Protected Attributes | |
| TreePatMap | myTreePatMap |
| osg::ref_ptr< osg::Group > | myRoot |
| The forest is a collection of trees under a group node. | |
| float | myFarPlane |
| float | myNearLOD |
| float | myFarLOD |
Protected Attributes inherited from makVrv::DtForestObject | |
| DtDe & | myDe |
| TreeRecordMap | myTreeRecordMap |
| TreeModelMap | myTreeModelMap |
Friends | |
| class | DtOsgForestClassesCreator |
| This allows the protected constructor to be called by the DtOsgForestCreator. | |
| class | DtOsgForestCreator |
DtOsgForest provides a way to make lots of trees.
| typedef std::map<DtUniqueID, osg::PositionAttitudeTransform*> makVrv::DtOsgForest::TreePatMap |
|
virtual |
Destructor.
|
protected |
Constructor is protected because this class is created via the creator pattern.
|
virtual |
Remove a tree from the forest.
Implements makVrv::DtForestObject.
Reimplemented in makVrv::DtSpeedTreeForest.
|
virtual |
Remove all trees.
Implements makVrv::DtForestObject.
|
virtual |
Set the distance that trees are clipped.
Implements makVrv::DtForestObject.
Reimplemented in makVrv::DtSpeedTreeForest.
|
virtual |
Set the distances for tree LOD's.
Implements makVrv::DtForestObject.
Reimplemented in makVrv::DtSpeedTreeForest.
|
virtual |
Get the distance that trees are clipped.
Implements makVrv::DtForestObject.
|
virtual |
Get the distances for tree LOD's.
Implements makVrv::DtForestObject.
|
virtual |
Set the performance profile for the forest.
Implements makVrv::DtForestObject.
Reimplemented in makVrv::DtSpeedTreeForest.
|
virtual |
Add a tree to the forest.
Implements makVrv::DtForestObject.
Reimplemented in makVrv::DtSpeedTreeForest.
| unsigned int makVrv::DtOsgForest::treeCount | ( | ) | const |
Get the number of trees.
|
virtual |
Find a DtTreeRecord based on it's id.
Implements makVrv::DtForestObject.
|
virtual |
Find a DtTreeModel from a model definition name.
Implements makVrv::DtForestObject.
|
virtual |
Find a DtModelInstance from a model definition name.
Implements makVrv::DtForestObject.
|
virtual |
Get the root group node.
|
protectedvirtual |
Create a Tree instance and add it to the group root node.
Implements makVrv::DtForestObject.
Reimplemented in makVrv::DtSpeedTreeForest.
|
protectedvirtual |
|
protectedvirtual |
Find a DtOsgModelInstance from a model definition name.
|
protectedvirtual |
Find a osg::PositionAttitudeTransform* from an id.
|
protectedvirtual |
Find a osg::PositionAttitudeTransform* from an id.
|
protectedvirtual |
Called when the model instance for a particular model definition is about to be destroyed.
Implements makVrv::DtForestObject.
Reimplemented in makVrv::DtSpeedTreeForest.
|
protectedvirtual |
Remove a DtTreeModel of a particular model definition.
Implements makVrv::DtForestObject.
|
protectedvirtual |
Called when the model instance for a particular model definition is created.
Implements makVrv::DtForestObject.
Reimplemented in makVrv::DtSpeedTreeForest.
|
friend |
This allows the protected constructor to be called by the DtOsgForestCreator.
|
friend |
|
protected |
|
protected |
The forest is a collection of trees under a group node.
|
protected |
|
protected |
|
protected |