VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtTerrainTreeSettings.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef DtTerrainTreeSettings_H_
11 #define DtTerrainTreeSettings_H_
12 
13 #include <vrvCore/vrvCore.h>
16 
17 #include <string>
18 #include <vector>
19 
20 namespace makVrv
21 {
22  class DtTerrainPatch;
23 
29  {
30  public:
31 
32  friend class DtTerrainPatch;
33 
34  protected:
35 
37  explicit DtTerrainTreeSettings(DtTerrainPatch* patch = 0);
38 
43  DtTerrainTreeSettings& operator=( const DtTerrainTreeSettings& orig );
44 
48  void setPatch(DtTerrainPatch* patch);
49 
50  public:
51 
53  DtTerrainPatch* patch();
54 
57 
59  void getRecord(makArchives::DtTerrainTreeSettingsRecord& rec) const;
60 
62  void setFromRecord(const makArchives::DtTerrainTreeSettingsRecord& rec);
63 
65 
66 
68  bool treeScaleRandomizationEnabled() const;
69 
71  bool treeOrientationRandomizationEnabled() const;
72 
74  double treeMinScale() const;
75 
77  double treeMaxScale() const;
78 
80  void setTreeScaleRandomizationEnabled(bool enabled);
81 
83  void setTreeOrientationRandomizationEnabled(bool enabled);
84 
86  void setTreeMinScale(double minScale);
87 
89  void setTreeMaxScale(double maxScale);
91 
92  protected:
93 
94  void applyAllSettings();
95  void applyTerrainTreeSettings();
96 
97  protected:
98 
101  };
102 }
103 
104 #endif
105 
A container for a single piece of terrain, containing settings needed to recreate it...
Definition: DtTerrainPatch.h:40
Record of terrain tree scale and orientation randomization settings.
Definition: DtTerrainTreeSettingsRecord.h:20
DtTerrainPatch * myPatch
Definition: DtTerrainTreeSettings.h:99
Contains makVrv::DtTerrainTreeSettingsRecord class.
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Class for setting and maintaining state for user-modifiable TerrainTree settings All of the TerrainTr...
Definition: DtTerrainTreeSettings.h:28
makArchives::DtTerrainTreeSettingsRecord myTerrainTreeSettingsRecord
Definition: DtTerrainTreeSettings.h:100
Contains DLL export macros.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)