VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgEarthCacheHandler.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 
15 #include <osgEarth/Bounds>
16 #include <QThread>
17 
18 namespace osgEarth
19 {
20  class MapNode;
21 }
22 
23 namespace makVrv
24 {
25  class DtOsgEarthCache;
26  class DtOsgEarthCacheLogic;
27  class DtOsgEarthCacheInterface;
28  class DtDe;
29  class DtChannel;
30 
34  {
35  Q_OBJECT
36 
37  public:
40 
43  virtual void run();
44 
46  virtual void initializeChannel(DtChannel* channel);
47 
49  virtual void setMapNode(osgEarth::MapNode* mapNode);
50 
53  virtual void setLowestLod(int lowestLod);
54 
57  virtual void setHighestLod(int highestLod);
58 
61  virtual void setFlyOver(bool flyOver);
62 
64  virtual void setBound(const osgEarth::Bounds& bound);
65 
68  virtual void setCacheImageLayers(bool val);
69 
71  virtual void setCacheElevationLayers(bool val);
72 
74  virtual void cancelCache();
75 
76  protected:
77 
79  void connectSignals();
80 
82  virtual void slot_updateProgress(int progress);
83 
85  virtual void slot_updateProgressText(std::string text);
86 
88  virtual void slot_cacheFinished();
89 
90  signals:
92  void qt_signal_updateProgress(int progress);
93 
95  void qt_signal_cacheFinished();
96 
97  protected:
102  };
103 
107  : public DtVirtualBaseClass
108  {
109  public:
110 
111  // Get the creator instance for this DE object. Creates instance if none found
112  static DtOsgEarthCacheHandlerCreator& instance(DtDe& de);
113 
114  static void registerInstance(DtDe& de, DtOsgEarthCacheHandlerCreator* creator);
115 
116  //Create the widget's logic.
117  virtual DtOsgEarthCacheHandler* create(DtDe& de, DtOsgEarthCacheInterface* iface);
118  };
119 }
DtSignalConnectionManager mySignals
Definition: DtOsgEarthCacheHandler.h:99
Contains DLL export macros.
Virtual base class.
Definition: DtVirtualBaseClass.h:22
DtOsgEarthCacheInterface * myInterface
Definition: DtOsgEarthCacheHandler.h:100
DtOsgEarthCacheHandler, using QThread to run the cache process in a separate thread.
Definition: DtOsgEarthCacheHandler.h:33
DtOsgEarthCache.
Definition: DtOsgEarthCache.h:53
The abstract Channel Class.
Definition: DtChannel.h:29
Contains makVrv::DtVirtualBaseClass class.
Creator class for DtOsgEarthCacheLogic.
Definition: DtOsgEarthCacheHandler.h:106
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:24
DtOsgEarthCacheInterface Interface class for generating cache data of image/elevation/model.
Definition: DtOsgEarthCacheInterface.h:18
DtDe & myDe
Definition: DtOsgEarthCacheHandler.h:98
Base class to provide boost signal/slot management.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
#define DT_DLL_VRVTERRAINEDITOR
Definition: vrvTerrainEditor.h:25
DtOsgEarthCache * myOsgEarthCache
Definition: DtOsgEarthCacheHandler.h:101

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)