VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtForest.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef DtForest_H_
11 #define DtForest_H_
12 
13 #include <vrvCore/vrvCore.h>
14 #include <vrvCore/DtUniqueID.h>
15 
16 #include <string>
17 
18 
19 namespace makArchives { class DtForestSettingsRecord; }
20 
21 namespace makVrv
22 {
23 
24  class DtProp;
25  class DtAgentManagerInterface;
26  class DtForestObjectAgent;
27  class DtTreeRecord;
28  class DtModelDefinition;
29  class DtTerrainTreeSettings;
30 
35  {
36  public:
37 
40 
42  ~DtForest();
43 
45  void setClippingPlanes(float farPlane);
46 
48  void getClippingPlanes(float& farPlane) const;
49 
51  void set3DLodDistances(float nearLOD, float farLOD);
52 
54  void get3DLodDistances(float& nearLOD, float& farLOD) const;
55 
57  void setBillboardDistances(float fStart, float fEnd);
58 
60  void getBillboardDistances(float& fStart, float& fEnd) const;
61 
63  void addTree(const DtTreeRecord& record);
64 
66  void removeTree(const DtTreeRecord& record);
67 
69  void addTree(const DtProp& prop);
70 
72  void setSpeedTreeSettings(DtTreeRecord& treeRecord
73  , const DtTerrainTreeSettings* terrainTreeSettings);
74 
76  void setScaleAndOrientation(DtTreeRecord& treeRecord
77  , const bool isTreeScaleRandomizationEnabled, const float minScale, const float maxScale
78  , const bool isTreeOrientationRandomizationEnabled);
79 
81  void removeTree(const DtProp& propID);
82 
84  void removeTree(const DtUniqueID& uniqueId);
85 
87  void removeAllTrees();
88 
90  DtForestObjectAgent* driver();
91 
92  protected:
94  DtForestObjectAgent* myForestAgent;
95 
96  float myFarPlane;
97 
100 
103  };
104 }
105 
106 #endif
107 

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)