VR-Vantage API Documentation
DtForest.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtForest.h,v $ $Revision: 1.12 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtForest_H_
14 #define DtForest_H_
15 
16 #include <vrvCore/vrvCore.h>
17 #include <vrvCore/DtUniqueID.h>
18 
19 #include <string>
20 
21 namespace makArchives { class DtForestSettingsRecord; }
22 
23 namespace makVrv
24 {
25 
26  class DtProp;
27  class DtAgentManagerInterface;
28  class DtForestObjectAgent;
29  class DtTreeRecord;
30 
35  {
36  public:
37 
40 
42  ~DtForest();
43 
45  void setClippingPlanes(float farPlane);
46 
48  void getClippingPlanes(float& farPlane) const;
49 
51  void setLodDistances(float nearLOD, float farLOD);
52 
54  void getLodDistances(float& nearLOD,float& farLOD) const;
55 
57  void setPerformanceProfile(int index);
58 
60  int performanceProfile() 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 removeTree(const DtProp& propID);
73 
75  void removeAllTrees();
76 
78  DtForestObjectAgent* driver();
79 
80  protected:
83  float myFarPlane;
84  float myNearLOD;
85  float myFarLOD;
87  };
88 }
89 
90 #endif
91 


Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)