VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtOsgForest.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 DtOsgForest_H_
11 #define DtOsgForest_H_
12 
13 #include <vrvOsg/vrvOsg.h>
14 #include <vrvCore/DtForestObject.h>
15 #include <vrvCore/DtAgentManager.h>
16 #include <osg/ref_ptr>
17 #include <osg/Group>
18 
19 namespace makVrv
20 {
21  class DtOsgModelInstance;
22 
26  {
27 
28  public:
29 
31  friend class DtOsgForestClassesCreator;
32  friend class DtOsgForestCreator;
33 
35  virtual ~DtOsgForest();
36 
40 
41 
43  virtual void addUniqueTree(DtTreeRecord& record);
44 
46  virtual void removeTree(DtUniqueID id);
47 
49  virtual void removeAllTrees();
50 
52  virtual void setTreeClippingPlane(float fFar);
53 
55  virtual void setTree3DLodDistances(float fNear, float fFar);
56 
58  virtual void getTreeClippingPlane(float& fFar);
59 
61  virtual void getTree3DLodDistances(float& fNear, float& fFar);
62 
64  virtual void setTreeBillboardDistances(float fStart, float fEnd);
65 
67  virtual void getTreeBillboardDistances(float& fStart, float& fEnd);
68 
70 
71  protected:
72 
74  DtOsgForest(DtDe& de, DtUniqueID id);
75 
76  private:
77 
78  };
79 
83  {
84 
85  public:
86 
88  virtual DtForestObject* create(DtDe& de, DtUniqueID id);
89 
90  };
91 
92 }
93 
94 #endif
95 

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)