VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgForest.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 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;
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 
69  // !\brief Set the distance that trees are faded out over.
70  virtual void setBillboardFadeOutRange(float fFar);
71 
72  // !\brief Get the distance that trees are faded out over.
73  virtual void getBillboardFadeOutRange(float& fFar);
75 
76  protected:
77 
79  DtOsgForest(DtDe& de, DtUniqueID id);
80 
81  private:
82 
83  };
84 
88  {
89 
90  public:
91 
93  virtual DtForestObject* create(DtDe& de, DtUniqueID id);
94 
95  };
96 
97 }
98 
99 #endif
100 
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Contains makVrv::DtForestObject class.
DtForestObject provides a way to make lots of trees.
Definition: DtForestObject.h:26
A DtTreeRecord holds the requisite information needed to create a tree in a forest.
Definition: DtTreeRecord.h:30
Contains makVrv:DtAgentManager class.
unsigned long long DtUniqueID
Definition: DtUniqueID.h:22
Contains DLL export macros.
The DtForestObjectCreator for the DtForestObject class.
Definition: DtForestObject.h:103
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
DtOsgForest provides a way to make lots of trees.
Definition: DtOsgForest.h:25
The DtOsgForestObjectCreator for the DtOsgForest class.
Definition: DtOsgForest.h:87

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)