VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtStreamingSpeedTreeForestManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvSt/vrvSt.h>
13 
15 
16 #include <boost/unordered_map.hpp>
17 
18 #include <vrvCore/DtTreeRecord.h>
19 
21 
22 namespace osg
23 {
24  class Node;
25 }
26 
27 namespace osgEarth
28 {
29  class Map;
30  class MapNode;
31  class ModelLayer;
32 
33  namespace Features
34  {
35  class CustomFeatureNode;
36  }
37 }
38 
39 namespace makVrv
40 {
41  class DtSpeedTreeForest;
42  class DtTerrainPatchObject;
43  class DtOsgTerrainPatchObject;
44  class DtTerrainPatchObjectForestManager;
45 
51  : public DtVirtualBaseClass
52  {
53  public:
54  static DtStreamingSpeedTreeForestManager& instance(DtDe& de);
55 
56  static void registerInstance(DtDe& de,
58 
61 
62  protected:
63 
65 
66  void slot_terrainPatchCreated(DtTerrainPatchObject& patch);
67  void slot_terrainPatchAboutToBeDeleted(DtTerrainPatchObject& patch);
68 
69 
70  void slot_createListOfTreesOnTerrain(const DtVectorTreeRecords& treeRecords, DtTerrainPatchObject& patch);
71 
72  void onLayerLoaded(DtOsgTerrainPatchObject* patch,
73  const osgEarth::MapNode* mapNode, const osgEarth::ModelLayer* layer);
74  void onLayerUnLoaded(DtOsgTerrainPatchObject* patch,
75  const osgEarth::MapNode* mapNode, const osgEarth::ModelLayer* layer);
76 
77  void onDataLoaded(DtOsgTerrainPatchObject* patch, const osgEarth::Map* map,
78  const osgEarth::ModelLayer* layer, const osg::Node* data);
79  void onDataUnLoaded(DtOsgTerrainPatchObject* patch, const osgEarth::Map* map,
80  const osgEarth::ModelLayer* layer, const osg::Node* data);
81 
82  DtTerrainPatchObjectForestManager* forestManager(
84 
85  protected:
87 
88  typedef boost::unordered_map<DtOsgTerrainPatchObject*,
90 
94  };
95 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)