VR-Forces 5.0.1 Developer's Guide
 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) 2021 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 
42  virtual ~DtOsgEarthCacheHandler();
43 
46  virtual void run();
47 
49  virtual void initializeChannel(DtChannel* channel);
50 
52  virtual void setMapNode(osgEarth::MapNode* mapNode);
53 
56  virtual void setLowestLod(int lowestLod);
57 
60  virtual void setHighestLod(int highestLod);
61 
64  virtual void setFlyOver(bool flyOver);
65 
67  virtual void setBound(const osgEarth::Bounds& bound);
68 
71  virtual void setCacheImageLayers(bool val);
72 
74  virtual void setCacheElevationLayers(bool val);
75 
77  virtual void cancelCache();
78 
79  protected:
80 
82  void connectSignals();
83 
85  virtual void slot_updateProgress(int progress);
86 
88  virtual void slot_updateProgressText(const std::string& text);
89 
91  virtual void slot_cacheFinished();
92 
93  signals:
95  void qt_signal_updateProgress(int progress);
96 
98  void qt_signal_cacheFinished();
99 
100  protected:
105  };
106 
110  : public DtVirtualBaseClass
111  {
112  public:
113 
114  // Get the creator instance for this DE object. Creates instance if none found
115  static DtOsgEarthCacheHandlerCreator& instance(DtDe& de);
116 
117  static void registerInstance(DtDe& de, DtOsgEarthCacheHandlerCreator* creator);
118 
119  //Create the widget's logic.
120  virtual DtOsgEarthCacheHandler* create(DtDe& de, DtOsgEarthCacheInterface* iface);
121  };
122 }
DtSignalConnectionManager mySignals
Definition: DtOsgEarthCacheHandler.h:102
Contains DLL export macros.
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
DtOsgEarthCacheInterface * myInterface
Definition: DtOsgEarthCacheHandler.h:103
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:35
Contains makVrv::DtVirtualBaseClass class.
Creator class for DtOsgEarthCacheLogic.
Definition: DtOsgEarthCacheHandler.h:109
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
DtOsgEarthCacheInterface Interface class for generating cache data of image/elevation/model.
Definition: DtOsgEarthCacheInterface.h:18
DtDe & myDe
Definition: DtOsgEarthCacheHandler.h:101
Base class to provide boost signal/slot management.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
#define DT_DLL_VRVTERRAINEDITOR
Definition: vrvTerrainEditor.h:25
DtOsgEarthCache * myOsgEarthCache
Definition: DtOsgEarthCacheHandler.h:104

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)