VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtTritonHeightMapSuperManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvTriton/vrvTriton.h>
13 
15 
16 #include <osg/Camera>
17 #include <osg/observer_ptr>
18 
19 #include <map>
20 
21 namespace osg
22 {
23  class RenderInfo;
24 }
25 
26 namespace makVrv
27 {
28  class DtTritonHeightMapManager;
29  class DtTritonDrawable;
30  class DtDe;
31 
34  {
35  protected:
36  typedef std::map< osg::observer_ptr<osg::Camera>, DtTritonHeightMapManager* > MapCamerasToHeightMapManagers;
37 
38  public:
41  protected:
46 
47  private:
54 
55  public:
57  virtual void setHeightMapResolution(float metersPerTexel);
59  virtual float heightMapResolution(void) const;
61  virtual void deleteAllHeightMapManagers(void);
63  virtual int numHeightMapManagers(void) const;
65  virtual bool flushInvalidCameras(void);
67  DtTritonHeightMapManager* getOrCreateHeightMapManager(osg::RenderInfo& renderInfo);
68 
69  protected:
71 
73 
76  };
77 
81  {
82  protected:
85 
88 
89  private:
94 
95  public:
97  static DtTritonHeightMapSuperManagerCreator& instance(DtDe& de);
98 
100  static void registerInstance(DtDe& de,
102 
103  public:
105  virtual DtTritonHeightMapSuperManager* create(DtTritonDrawable* parentDrawable, DtDe& de);
106  };
107 }
A class to manage automatic periodic updating of a height map generated from the database dynamically...
Definition: DtTritonHeightMapManager.h:122
Virtual base class.
Definition: DtVirtualBaseClass.h:22
A class to manage multiple DtTritonHeightMapManager(s) (one per camera)
Definition: DtTritonHeightMapSuperManager.h:33
DtTritonDrawable * myTritonDrawable
Definition: DtTritonHeightMapSuperManager.h:74
std::map< osg::observer_ptr< osg::Camera >, DtTritonHeightMapManager * > MapCamerasToHeightMapManagers
Definition: DtTritonHeightMapSuperManager.h:36
Contains DLL export macros.
Contains makVrv::DtVirtualBaseClass class.
DtDe & myDe
Definition: DtTritonHeightMapSuperManager.h:75
float myHeightMapResolution
Definition: DtTritonHeightMapSuperManager.h:72
#define DT_DLL_VRVTRITON
Definition: vrvTriton.h:19
DtTritonHeightMapSuperManager creator.
Definition: DtTritonHeightMapSuperManager.h:80
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
An OSG Drawable representing Triton&#39;s infinite ocean.
Definition: DtTritonDrawable.h:61
MapCamerasToHeightMapManagers myHeightMapManagerMap
Definition: DtTritonHeightMapSuperManager.h:70

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)