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

Public Types | |
| typedef boost::unordered_map < DtUniqueID, DtTreeRecord > | TreeRecordMap |
Public Member Functions | |
| virtual | ~DtForestObject () |
| Destructor. | |
| virtual DtDe & | de () |
| IG accessor. | |
Driver bound methods | |
These methods are bound to the driver. | |
| virtual void | addUniqueTree (DtTreeRecord &record)=0 |
| Add a tree to the forest. | |
| virtual void | removeTree (DtUniqueID treeId)=0 |
| Remove a tree from the forest. | |
| virtual void | removeAllTrees ()=0 |
| Remove all trees. | |
| virtual void | setTreeClippingPlane (float fFar)=0 |
| Set the distance that trees are clipped. | |
| virtual void | getTreeClippingPlane (float &fFar)=0 |
| Get the clipping planes. | |
| virtual void | setTree3DLodDistances (float fNear, float fFar)=0 |
| Set the distances for tree LOD's. | |
| virtual void | getTree3DLodDistances (float &fNear, float &fFar)=0 |
| Set the distances for tree LOD's. | |
| virtual void | setTreeBillboardDistances (float fStart, float fEnd)=0 |
| Set the distances for tree billboard LOD's. | |
| virtual void | getTreeBillboardDistances (float &fStart, float &fEnd)=0 |
| Get the distances for tree billboard LOD's. | |
| void | addTree (DtTreeRecord &record) |
| Add a tree to the forest. | |
Protected Member Functions | |
| DtForestObject (DtDe &de, DtUniqueID id) | |
| Constructor is protected because this class is created via the creator pattern. | |
Protected Attributes | |
| DtDe & | myDe |
Friends | |
| class | DtForestObjectClassesCreator |
| This allows the protected constructor to be called by the DtForestCreator(2). | |
| class | DtForestCreator |
DtForestObject provides a way to make lots of trees.
| typedef boost::unordered_map<DtUniqueID, DtTreeRecord> makVrv::DtForestObject::TreeRecordMap |
|
virtual |
Destructor.
|
protected |
Constructor is protected because this class is created via the creator pattern.
|
pure virtual |
Add a tree to the forest.
Implemented in makVrv::DtSpeedTreeForest, and makVrv::DtOsgForest.
|
pure virtual |
Remove a tree from the forest.
Implemented in makVrv::DtSpeedTreeForest, and makVrv::DtOsgForest.
|
pure virtual |
Remove all trees.
Implemented in makVrv::DtSpeedTreeForest, and makVrv::DtOsgForest.
|
pure virtual |
Set the distance that trees are clipped.
Not implemented in DtOsgForest (only DtSpeedTreeForest).
Implemented in makVrv::DtSpeedTreeForest, and makVrv::DtOsgForest.
|
pure virtual |
Get the clipping planes.
Implemented in makVrv::DtSpeedTreeForest, and makVrv::DtOsgForest.
|
pure virtual |
Set the distances for tree LOD's.
Not implemented in DtOsgForest (only DtSpeedTreeForest).
Implemented in makVrv::DtSpeedTreeForest, and makVrv::DtOsgForest.
|
pure virtual |
Set the distances for tree LOD's.
Not implemented in DtOsgForest (only DtSpeedTreeForest).
Implemented in makVrv::DtSpeedTreeForest, and makVrv::DtOsgForest.
|
pure virtual |
Set the distances for tree billboard LOD's.
Not implemented in DtOsgForest (only DtSpeedTreeForest).
Implemented in makVrv::DtSpeedTreeForest, and makVrv::DtOsgForest.
|
pure virtual |
Get the distances for tree billboard LOD's.
Not implemented in DtOsgForest (only DtSpeedTreeForest).
Implemented in makVrv::DtSpeedTreeForest, and makVrv::DtOsgForest.
| void makVrv::DtForestObject::addTree | ( | DtTreeRecord & | record | ) |
Add a tree to the forest.
Non virtual. Calls virtual method addUniqueTree().
|
virtual |
IG accessor.
|
friend |
This allows the protected constructor to be called by the DtForestCreator(2).
|
friend |
|
protected |