![]() |
VR-Forces Developer's Guide
|
A wrapper around the forest driver and some local state of the forest.
Public Member Functions | |
| DtForest (DtAgentManagerInterface &smi) | |
| ~DtForest () | |
| void | setClippingPlanes (float farPlane) |
| void | getClippingPlanes (float &farPlane) const |
| void | set3DLodDistances (float nearLOD, float farLOD) |
| void | get3DLodDistances (float &nearLOD, float &farLOD) const |
| void | setBillboardDistances (float fStart, float fEnd) |
| void | setBillboardFadeOutRange (float range) |
| void | getBillboardDistances (float &fStart, float &fEnd) const |
| void | addTree (const DtTreeRecord &record) |
| void | removeTree (const DtTreeRecord &record) |
| void | addTree (const DtProp &prop) |
| void | setSpeedTreeSettings (DtTreeRecord &treeRecord, const DtTerrainTreeSettings *terrainTreeSettings) |
| void | setScaleAndOrientation (DtTreeRecord &treeRecord, const bool isTreeScaleRandomizationEnabled, const float minScale, const float maxScale, const bool isTreeOrientationRandomizationEnabled) |
| void | removeTree (const DtProp &propID) |
| void | removeTree (const DtUniqueID &uniqueId) |
| void | removeAllTrees () |
| DtForestObjectAgent * | driver () |
Protected Attributes | |
| DtAgentManagerInterface & | mySceneInterface |
| DtForestObjectAgent * | myForestAgent |
| float | myFarPlane |
| float | myHighDetail3DDistance |
| float | myLowDetail3DDistance |
| float | myBillboardStartDistance |
| float | myBillboardEndDistance |
| float | myBillboardFadeOutRange |
| makVrv::DtForest::DtForest | ( | DtAgentManagerInterface & | smi | ) |
CTOR.
| makVrv::DtForest::~DtForest | ( | ) |
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::set3DLodDistances | ( | float | nearLOD, |
| float | farLOD | ||
| ) |
Set the LOD distances for the trees.
| void makVrv::DtForest::get3DLodDistances | ( | float & | nearLOD, |
| float & | farLOD | ||
| ) | const |
Get the LOD distances for the trees.
| void makVrv::DtForest::setBillboardDistances | ( | float | fStart, |
| float | fEnd | ||
| ) |
Set the Billboard distances for the trees.
| void makVrv::DtForest::setBillboardFadeOutRange | ( | float | range | ) |
set the fade out distance for the billboards. The Range - Cull distance = start transition dist
| void makVrv::DtForest::getBillboardDistances | ( | float & | fStart, |
| float & | fEnd | ||
| ) | const |
Get the Billboard distances for the trees.
| 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::setSpeedTreeSettings | ( | DtTreeRecord & | treeRecord, |
| const DtTerrainTreeSettings * | terrainTreeSettings | ||
| ) |
set the speed tree setting according to the terrains settings (scale and orientation)
| void makVrv::DtForest::setScaleAndOrientation | ( | DtTreeRecord & | treeRecord, |
| const bool | isTreeScaleRandomizationEnabled, | ||
| const float | minScale, | ||
| const float | maxScale, | ||
| const bool | isTreeOrientationRandomizationEnabled | ||
| ) |
set scale and orientation (Only implemented for Speed Trees)
| void makVrv::DtForest::removeTree | ( | const DtProp & | propID | ) |
Removes a tree from the forest.
| void makVrv::DtForest::removeTree | ( | const DtUniqueID & | uniqueId | ) |
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.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |