VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtIndirectGeometryManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
13 
15 #include <boost/unordered_map.hpp>
16 
17 namespace osg
18 {
19  class Node;
20 }
21 
22 namespace osgEarth
23 {
24  class MapNode;
25  class ModelLayer;
26  class Map;
27 }
28 
29 namespace makVrv
30 {
31  class DtIndirectGeometryLayerManager;
32 
33  class DtTerrainPatchObject;
34 
40  : public DtVirtualBaseClass
41  {
42  public:
44  virtual ~DtIndirectGeometryManager();
45 
48  static DtIndirectGeometryManager& instance(DtDe& de);
49 
50  protected:
53 
56 
60  virtual void slot_terrainPatchCreated(DtTerrainPatchObject& patch);
61 
65 
67 
68 
69 
70 
72  virtual void onLayerLoaded(const osgEarth::MapNode* mapNode, const osgEarth::ModelLayer* layer);
73 
75  virtual void onDataPreMerge(const osgEarth::Map* map, const osgEarth::ModelLayer* layer, osg::Node* newData);
76 
78  virtual void onDataLoaded(const osgEarth::Map* map, const osgEarth::ModelLayer* layer, const osg::Node* newData);
79 
81  virtual void onDataUnloaded(const osgEarth::Map* map, const osgEarth::ModelLayer* layer, const osg::Node* oldData);
83 
85  virtual bool isFeatureCustomModelSource(const osgEarth::ModelLayer* layer);
86 
87  protected:
89 
91  typedef boost::unordered_map<const osgEarth::ModelLayer*, DtIndirectGeometryLayerManager* > MapLayerToLayerManagerIndirectGeometry;
93  private:
96  };
97 
101  : public DtVirtualBaseClass
102  {
103  public:
106 
109 
111  virtual DtIndirectGeometryManager* create(DtDe& de);
112  };
113 
114 }

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)