VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
makVrv::DtTerrainTreeSettings Class Reference

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

DtTerrainPatchpatch ()
 
 ~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)
 
DtTerrainTreeSettingsoperator= (const DtTerrainTreeSettings &orig)
 
void setPatch (DtTerrainPatch *patch)
 
void applyAllSettings ()
 
void applyTerrainTreeSettings ()
 

Protected Attributes

DtTerrainPatchmyPatch
 
makArchives::DtTerrainTreeSettingsRecord myTerrainTreeSettingsRecord
 

Friends

class DtTerrainPatch
 

Constructor & Destructor Documentation

makVrv::DtTerrainTreeSettings::DtTerrainTreeSettings ( DtTerrainPatch patch = 0)
explicitprotected

CTOR.

makVrv::DtTerrainTreeSettings::~DtTerrainTreeSettings ( )

DTOR.

Member Function Documentation

DtTerrainTreeSettings& makVrv::DtTerrainTreeSettings::operator= ( const DtTerrainTreeSettings orig)
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()

void makVrv::DtTerrainTreeSettings::setPatch ( DtTerrainPatch patch)
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.

void makVrv::DtTerrainTreeSettings::applyAllSettings ( )
protected
void makVrv::DtTerrainTreeSettings::applyTerrainTreeSettings ( )
protected

Friends And Related Function Documentation

friend class DtTerrainPatch
friend

Member Data Documentation

DtTerrainPatch* makVrv::DtTerrainTreeSettings::myPatch
protected
makArchives::DtTerrainTreeSettingsRecord makVrv::DtTerrainTreeSettings::myTerrainTreeSettingsRecord
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)