VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgEarthCacheLogic.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 
16 #include <osgEarth/Bounds>
17 
18 namespace makVrv
19 {
20  // Class Forward Declarations
21  class DtOsgEarthCacheInterface;
22  class DtChannel;
23  class DtChannelManager;
24  class DtOsgGeoExtentRectangle;
25  class DtOsgEarthCacheHandler;
26  class DtOsgEarthCacheEditingEventProcessor;
27 
32  {
33  public:
34 
36 
38  virtual ~DtOsgEarthCacheLogic();
39 
41  virtual int lowestLod() const;
42 
44  virtual int highestLod() const;
45 
47  virtual osgEarth::Bounds getGeodeticBound();
48 
50  virtual bool cacheImageLayers() const;
51 
53  virtual bool cacheElevationLayers() const;
54 
56  virtual void reset();
57 
59  virtual void enableEventProcessor(bool enable);
60 
61  protected:
62 
66 
68  virtual void connectSignals();
69 
71 
74  virtual void slot_leftMouseDoubleClick();
75 
79  virtual void slot_mouseMove(double mouseX, double mouseY);
80 
85  virtual void slot_leftMouseButtonRealeased(DtChannel* channel, double mouseX, double mouseY);
86 
88 
93  virtual void slot_vertexChanged(int index, double longtitude, double latitude);
94 
96  virtual void slot_exit();
97 
99  virtual void slot_postTick();
100 
102  virtual void slot_osgEarthTerrainDefinitionChanged(const std::string& osgEarthTerrainDefinition);
103 
105  virtual void slot_channelToBeDestroyed(DtChannelManager*, DtChannel* channel);
106 
108  virtual void slot_lowestLodChanged(int);
110  virtual void slot_highestLodChanged(int);
111  virtual void slot_cacheImageChanged(bool);
112  virtual void slot_cacheElevationChanged(bool);
113  virtual void slot_startLongitudeChanged(double);
114  virtual void slot_startLatitudeChanged(double);
115  virtual void slot_endLongitudeChanged(double);
116  virtual void slot_endLatitudeChanged(double);
117  virtual void slot_generateCacheButtonClicked();
118  virtual void slot_cleanAreaButtonClicked();
119  virtual void slot_cancelButtonClicked();
120  virtual void slot_cacheFinished(bool);
122 
123  private:
124 
128  DtOsgEarthCacheLogic& operator=(const DtOsgEarthCacheLogic&) = delete;
129 
130  protected:
144  boost::signalslib::connection myCacheAreaVertexChangedConnection;
145  };
146 
150  : public DtVirtualBaseClass
151  {
152  public:
153 
154  // Get the creator instance for this DE object. Creates instance if none found
155  static DtOsgEarthCacheLogicCreator& instance(DtDe& de);
156 
157  static void registerInstance(DtDe& de, DtOsgEarthCacheLogicCreator* creator);
158 
159  //Create the widget's logic.
160  virtual DtOsgEarthCacheLogic* create(DtDe& de, DtOsgEarthCacheInterface* iface);
161  };
162 }
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
DtOsgEarthCacheHandler * myHandler
Definition: DtOsgEarthCacheLogic.h:132
bool myDontShowWarningDialogAgain
Definition: DtOsgEarthCacheLogic.h:143
Creator class for DtOsgEarthCacheLogic.
Definition: DtOsgEarthCacheLogic.h:149
A rectangle defines an axis-aligned geospatial extent. A bounding box that is aligned with a spatial ...
Definition: DtOsgGeoExtentRectangle.h:33
DtDe & myDe
Definition: DtOsgEarthCacheLogic.h:135
DtOsgEarthCacheEditingEventProcessor - This class handles the events of selecting cache area...
Definition: DtOsgEarthCacheEditingEventProcessor.h:32
DtOsgEarthCacheHandler, using QThread to run the cache process in a separate thread.
Definition: DtOsgEarthCacheHandler.h:33
int myMaximumLod
Definition: DtOsgEarthCacheLogic.h:140
Contains the DtSharedDisplayUnitsSettings class declaration.
The abstract Channel Class.
Definition: DtChannel.h:35
Contains makVrv::DtVirtualBaseClass class.
int myLowestLod
Definition: DtOsgEarthCacheLogic.h:141
boost::signalslib::connection myCacheAreaVertexChangedConnection
Definition: DtOsgEarthCacheLogic.h:144
bool myCacheImageLayers
Definition: DtOsgEarthCacheLogic.h:138
bool myCacheElevationLayers
Definition: DtOsgEarthCacheLogic.h:139
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
DtOsgEarthCacheInterface * myInterface
Definition: DtOsgEarthCacheLogic.h:136
int myHighestLod
Definition: DtOsgEarthCacheLogic.h:142
DtOsgEarthCacheInterface Interface class for generating cache data of image/elevation/model.
Definition: DtOsgEarthCacheInterface.h:18
Base class for handling DtChannels. Derived classes should override the tick() method and advance the...
Definition: DtChannelManager.h:32
Base class to provide boost signal/slot management.
DtChannel * myChannel
Definition: DtOsgEarthCacheLogic.h:137
DtOsgEarthCacheLogic.
Definition: DtOsgEarthCacheLogic.h:31
DtOsgEarthCacheEditingEventProcessor * myEventProcessor
Definition: DtOsgEarthCacheLogic.h:131
DtOsgGeoExtentRectangle * myCacheArea
Definition: DtOsgEarthCacheLogic.h:133
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
DtSignalConnectionManager mySignals
Definition: DtOsgEarthCacheLogic.h:134

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)