VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtTerrainPatchObjectManager.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 
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  class DtOsgLightPointManager;
26 
33  {
34  public:
36  virtual ~DtTerrainPatchObjectManager();
37 
38  typedef std::set<DtOsgTerrainPatchObject*> TerrainPatchObjectSet;
39 
41  virtual const TerrainPatchObjectSet& findTerrainPatchObjects() const;
42 
44  virtual TerrainPatchObjectSet& findTerrainPatchObjects();
45 
47  virtual void registerTerrainPatchObject(DtOsgTerrainPatchObject* obj);
48 
50  virtual void unregisterTerrainPatchObject(DtOsgTerrainPatchObject* obj);
51 
54  virtual void cleanupPagedDynamicFeatures();
55 
57  static DtTerrainPatchObjectManager& instance(DtDe& de);
58 
60  static std::string theClassName();
61 
63  virtual void slot_childPagedIn(const osg::Group* page, const osg::Node* child);
64 
66  virtual void slot_childAboutToPageOut(const osg::Group* page, const osg::Node* child);
67 
68  protected:
71 
73 
74  typedef std::map<osg::ref_ptr<const osg::Node>, DtDynamicTerrainWorld::FeatureHandle> NodeFeatureMap;
76 
78 
80 
81  };
82 }

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)