VR-Forces 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) 2025 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 setMapNode(osgEarth::MapNode* mapNode);
50 
53  virtual void setLowestLod(int lowestLod);
54 
57  virtual void setHighestLod(int highestLod);
58 
60  virtual void setBound(const osgEarth::Bounds& bound);
61 
64  virtual void setCacheImageLayers(bool val);
65 
67  virtual void setCacheElevationLayers(bool val);
68 
70  virtual void cancelCache();
71 
72  protected:
73 
75  void connectSignals();
76 
78  virtual void slot_updateProgress(double, double);
79 
81  virtual void slot_updateProgressText(const std::string& text);
82 
84  virtual void slot_cacheFinished(bool success);
85 
86  signals:
88  void qt_signal_updateProgress(double, double);
89 
91  void qt_signal_cacheFinished(bool success);
92 
93  protected:
98  };
99 
103  : public DtVirtualBaseClass
104  {
105  public:
106 
107  // Get the creator instance for this DE object. Creates instance if none found
108  static DtOsgEarthCacheHandlerCreator& instance(DtDe& de);
109 
110  static void registerInstance(DtDe& de, DtOsgEarthCacheHandlerCreator* creator);
111 
112  //Create the widget's logic.
113  virtual DtOsgEarthCacheHandler* create(DtDe& de, DtOsgEarthCacheInterface* iface);
114  };
115 }
DtSignalConnectionManager mySignals
Definition: DtOsgEarthCacheHandler.h:95
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:96
DtOsgEarthCacheHandler, using QThread to run the cache process in a separate thread.
Definition: DtOsgEarthCacheHandler.h:33
DtOsgEarthCache.
Definition: DtOsgEarthCache.h:36
Contains makVrv::DtVirtualBaseClass class.
Creator class for DtOsgEarthCacheLogic.
Definition: DtOsgEarthCacheHandler.h:102
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:94
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:76
#define DT_DLL_VRVTERRAINEDITOR
Definition: vrvTerrainEditor.h:25
DtOsgEarthCache * myOsgEarthCache
Definition: DtOsgEarthCacheHandler.h:97

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)