VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtStreamingSpeedTreeForestManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2015 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 
64  friend class DtStreamingSpeedTreeFeatureCallback;
65 
66  void slot_terrainPatchCreated(DtTerrainPatchObject& patch);
67  void slot_terrainPatchAboutToBeDeleted(DtTerrainPatchObject& patch);
68 
69  void onLayerLoaded(DtOsgTerrainPatchObject* patch,
70  osgEarth::MapNode* mapNode, osgEarth::ModelLayer* layer);
71  void onLayerUnLoaded(DtOsgTerrainPatchObject* patch,
72  osgEarth::MapNode* mapNode, osgEarth::ModelLayer* layer);
73 
74  void onDataLoaded(DtOsgTerrainPatchObject* patch, osgEarth::Map* map,
75  osgEarth::ModelLayer* layer, osg::Node* data);
76  void onDataUnLoaded(DtOsgTerrainPatchObject* patch, osgEarth::Map* map,
77  osgEarth::ModelLayer* layer, osg::Node* data);
78 
79  DtTerrainPatchObjectForestManager* forestManager(
81 
82  protected:
84 
85  typedef boost::unordered_map<DtOsgTerrainPatchObject*,
87 
91  };
92 }

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)