![]() |
VR-Forces 4.0.4 Class Documentation
|
A wrapper around the forest driver and some local state of the forest. More...
Public Member Functions | |
| DtForest (DtAgentManagerInterface &smi) | |
| CTOR. | |
| ~DtForest () | |
| DTOR. | |
| void | setClippingPlanes (float farPlane) |
| Set the clipping planes for the forest. | |
| void | getClippingPlanes (float &farPlane) const |
| Get the clipping planes for the forest. | |
| void | setLodDistances (float nearLOD, float farLOD) |
| Set the LOD distances for the trees. | |
| void | getLodDistances (float &nearLOD, float &farLOD) const |
| Get the LOD distances for the trees. | |
| void | setPerformanceProfile (int index) |
| Set performance profile. | |
| int | performanceProfile () const |
| Get the performance profile. | |
| void | addTree (const DtTreeRecord &record) |
| Add a tree to the forest. | |
| void | removeTree (const DtTreeRecord &record) |
| Removes a tree from the forest. | |
| void | addTree (const DtProp &prop) |
| Add a tree to the forest. | |
| void | removeTree (const DtProp &propID) |
| Removes a tree from the forest. | |
| void | removeAllTrees () |
| Remove all trees. | |
| DtForestObjectAgent * | driver () |
| Get the forest driver. Typically you should not need to call this. | |
Protected Attributes | |
| DtAgentManagerInterface & | mySceneInterface |
| DtForestObjectAgent * | myForestAgent |
| float | myFarPlane |
| float | myNearLOD |
| float | myFarLOD |
| int | myPerformanceProfile |
A wrapper around the forest driver and some local state of the forest.
CTOR.
DTOR.
| void makVrv::DtForest::setClippingPlanes | ( | float | farPlane | ) |
Set the clipping planes for the forest.
| void makVrv::DtForest::getClippingPlanes | ( | float & | farPlane | ) | const |
Get the clipping planes for the forest.
| void makVrv::DtForest::setLodDistances | ( | float | nearLOD, |
| float | farLOD | ||
| ) |
Set the LOD distances for the trees.
| void makVrv::DtForest::getLodDistances | ( | float & | nearLOD, |
| float & | farLOD | ||
| ) | const |
Get the LOD distances for the trees.
| void makVrv::DtForest::setPerformanceProfile | ( | int | index | ) |
Set performance profile.
| int makVrv::DtForest::performanceProfile | ( | ) | const |
Get the performance profile.
| void makVrv::DtForest::addTree | ( | const DtTreeRecord & | record | ) |
Add a tree to the forest.
| void makVrv::DtForest::removeTree | ( | const DtTreeRecord & | record | ) |
Removes a tree from the forest.
| void makVrv::DtForest::addTree | ( | const DtProp & | prop | ) |
Add a tree to the forest.
| void makVrv::DtForest::removeTree | ( | const DtProp & | propID | ) |
Removes a tree from the forest.
| void makVrv::DtForest::removeAllTrees | ( | ) |
Remove all trees.
| DtForestObjectAgent* makVrv::DtForest::driver | ( | ) |
Get the forest driver. Typically you should not need to call this.
DtForestObjectAgent* makVrv::DtForest::myForestAgent [protected] |
float makVrv::DtForest::myFarPlane [protected] |
float makVrv::DtForest::myNearLOD [protected] |
float makVrv::DtForest::myFarLOD [protected] |
int makVrv::DtForest::myPerformanceProfile [protected] |