![]() |
VR-Forces Developer's Guide
|
Class for setting and maintaining state for user-modifiable TerrainTree settings All of the TerrainTree-changing calls in the UI go through this, so that saving this class provides enough information to restore all of the TerrainTree settings to a terrain patch.
Public Member Functions | |
| DtTerrainPatch * | patch () |
| ~DtTerrainTreeSettings () | |
| void | getRecord (makArchives::DtTerrainTreeSettingsRecord &rec) const |
| void | setFromRecord (const makArchives::DtTerrainTreeSettingsRecord &rec) |
Tree Randomization Settings | |
| bool | treeScaleRandomizationEnabled () const |
| bool | treeOrientationRandomizationEnabled () const |
| double | treeMinScale () const |
| double | treeMaxScale () const |
| void | setTreeScaleRandomizationEnabled (bool enabled) |
| void | setTreeOrientationRandomizationEnabled (bool enabled) |
| void | setTreeMinScale (double minScale) |
| void | setTreeMaxScale (double maxScale) |
Protected Member Functions | |
| DtTerrainTreeSettings (DtTerrainPatch *patch=0) | |
| DtTerrainTreeSettings & | operator= (const DtTerrainTreeSettings &orig) |
| void | setPatch (DtTerrainPatch *patch) |
| void | applyAllSettings () |
| void | applyTerrainTreeSettings () |
Protected Attributes | |
| DtTerrainPatch * | myPatch |
| makArchives::DtTerrainTreeSettingsRecord | myTerrainTreeSettingsRecord |
Friends | |
| class | DtTerrainPatch |
|
explicitprotected |
CTOR.
| makVrv::DtTerrainTreeSettings::~DtTerrainTreeSettings | ( | ) |
DTOR.
|
protected |
Assignment operator Note that this does NOT change what patch is associated with the DtTerrainTreeSettings. It only assigns all of the configuration from the source TerrainTree settings. To set the patch afterwards, use setPatch()
|
protected |
Set associated terrain patch and apply current TerrainTree settings to it This should only be called by the associated terrain patch to avoid situations where the patch doesn't know about it!
| DtTerrainPatch* makVrv::DtTerrainTreeSettings::patch | ( | ) |
Get associated terrain patch.
| void makVrv::DtTerrainTreeSettings::getRecord | ( | makArchives::DtTerrainTreeSettingsRecord & | rec | ) | const |
Fill out a makArchives::DtTerrainTreeSettingsRecord with the values of this object.
| void makVrv::DtTerrainTreeSettings::setFromRecord | ( | const makArchives::DtTerrainTreeSettingsRecord & | rec | ) |
Fill out this object with the values of a makArchives::DtTerrainTreeSettingsRecord.
| bool makVrv::DtTerrainTreeSettings::treeScaleRandomizationEnabled | ( | ) | const |
Returns whether tree scale randomization is enabled.
| bool makVrv::DtTerrainTreeSettings::treeOrientationRandomizationEnabled | ( | ) | const |
Returns whether tree orientation randomization is enabled.
| double makVrv::DtTerrainTreeSettings::treeMinScale | ( | ) | const |
Returns tree min scale.
| double makVrv::DtTerrainTreeSettings::treeMaxScale | ( | ) | const |
Returns tree max scale.
| void makVrv::DtTerrainTreeSettings::setTreeScaleRandomizationEnabled | ( | bool | enabled | ) |
Sets whether tree scale randomization is enabled.
| void makVrv::DtTerrainTreeSettings::setTreeOrientationRandomizationEnabled | ( | bool | enabled | ) |
Sets whether tree orientation randomization is enabled.
| void makVrv::DtTerrainTreeSettings::setTreeMinScale | ( | double | minScale | ) |
Sets minimum scale for trees.
| void makVrv::DtTerrainTreeSettings::setTreeMaxScale | ( | double | maxScale | ) |
Sets maximum scale for trees.
|
protected |
|
protected |
|
friend |
|
protected |
|
protected |