VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtTerrainPatchObjectManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
14 
15 #include <set>
16 #include <string>
17 #include <osg/Group>
18 #include <osg/Node>
20 
21 namespace makVrv
22 {
23  class DtDe;
24  class DtOsgTerrainPatchObject;
25 
32  {
33  public:
35  virtual ~DtTerrainPatchObjectManager();
36 
37  typedef std::set<DtOsgTerrainPatchObject*> TerrainPatchObjectSet;
38 
40  virtual const TerrainPatchObjectSet& findTerrainPatchObjects() const;
41 
43  virtual TerrainPatchObjectSet& findTerrainPatchObjects();
44 
46  virtual void registerTerrainPatchObject(DtOsgTerrainPatchObject* obj);
47 
49  virtual void unregisterTerrainPatchObject(DtOsgTerrainPatchObject* obj);
50 
53  virtual void cleanupPagedDynamicFeatures();
54 
56  static DtTerrainPatchObjectManager& instance(DtDe& de);
57 
59  static std::string theClassName();
60 
62  virtual void slot_childPagedIn(osg::Group* page, osg::Node* child);
63 
65  virtual void slot_childAboutToPageOut(osg::Group* page, osg::Node* child);
66 
67  protected:
70 
72 
73  typedef std::map<osg::ref_ptr<osg::Node>, DtDynamicTerrainWorld::FeatureHandle> NodeFeatureMap;
75 
77  };
78 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)