VR-Forces 4.8 Class Documentation
 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) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
15 #include <matrix/vlVector.h>
16 #include <vector>
18 #include <QThread>
19 #include <osgEarth/Bounds>
20 
21 // Class Forward Declarations
22 namespace osgEarth
23 {
24  class MapNode;
25 }
26 
27 namespace makVrv
28 {
29  // Class Forward Declarations
30  class DtCameraNode;
31  class DtOsgEarthCache;
32  class DtOsgEarthCacheInterface;
33  class DtChannel;
34  class DtOsgGeoExtentRectangle;
35  class DtOsgEarthCacheHandler;
36  class DtOsgEarthCacheEditingEventProcessor;
37 
42  {
43  public:
44 
46 
48  virtual ~DtOsgEarthCacheLogic();
49 
51  virtual int lowestLod() const;
52 
54  virtual int highestLod() const;
55 
57  virtual bool flyOverChecked() const;
58 
60  virtual osgEarth::Bounds getBound();
61 
63  virtual bool cacheImageLayers() const;
64 
66  virtual bool cacheElevationLayers() const;
67 
69  virtual void reset();
70 
72  virtual void enableEventProcessor(bool enable);
73 
74  protected:
75 
79 
80  //call in the CTOR
81  void initialize();
82 
84  virtual void connectSignals();
85 
87  virtual void slot_displayCoordinateSystemChanged(DtSharedDisplayUnitsSettings::CoordSys, int, int);
88 
90 
93  virtual void slot_leftMouseDoubleClick();
94 
98  virtual void slot_mouseMove(double mouseX, double mouseY);
99 
104  virtual void slot_leftMouseButtonRealeased(DtChannel* channel, double mouseX, double mouseY);
105 
107 
112  virtual void slot_vertexChanged(int index, double longtitude, double latitude);
113 
115  virtual void slot_exit();
116 
118  virtual void slot_postTick();
119 
121  virtual void slot_osgEarthTerrainDefinitionChanged(const std::string& osgEarthTerrainDefinition);
122 
124  virtual void slot_lowestLodChanged(int);
126  virtual void slot_highestLodChanged(int);
127  virtual void slot_cacheImageChanged(bool);
128  virtual void slot_cacheElevationChanged(bool);
129  virtual void slot_flyOverCheckBoxChanged(bool);
130  virtual void slot_specifyCacheAreaCheckBoxChanged(bool);
131  virtual void slot_startLongitudeChanged(double);
132  virtual void slot_startLatitudeChanged(double);
133  virtual void slot_endLongitudeChanged(double);
134  virtual void slot_endLatitudeChanged(double);
135  virtual void slot_generateCacheButtonClicked();
136  virtual void slot_cleanAreaButtonClicked();
137  virtual void slot_cancelButtonClicked();
139 
140  private:
141 
145  DtOsgEarthCacheLogic &operator=(const DtOsgEarthCacheLogic &);
146 
147  protected:
158  bool myFlyOver;
163  };
164 
168  : public DtVirtualBaseClass
169  {
170  public:
171 
172  // Get the creator instance for this DE object. Creates instance if none found
173  static DtOsgEarthCacheLogicCreator& instance(DtDe& de);
174 
175  static void registerInstance(DtDe& de, DtOsgEarthCacheLogicCreator* creator);
176 
177  //Create the widget's logic.
178  virtual DtOsgEarthCacheLogic* create(DtDe& de, DtOsgEarthCacheInterface* iface);
179  };
180 }
Contains DLL export macros.
Virtual base class.
Definition: DtVirtualBaseClass.h:22
DtOsgEarthCacheHandler * myHandler
Definition: DtOsgEarthCacheLogic.h:149
bool myDontShowWarningDialogAgain
Definition: DtOsgEarthCacheLogic.h:162
Creator class for DtOsgEarthCacheLogic.
Definition: DtOsgEarthCacheLogic.h:167
A rectangle defines an axis-aligned geospatial extent.
Definition: DtOsgGeoExtentRectangle.h:29
DtDe & myDe
Definition: DtOsgEarthCacheLogic.h:152
DtOsgEarthCacheEditingEventProcessor - This class handles the events of selecting cache area...
Definition: DtOsgEarthCacheEditingEventProcessor.h:32
bool mySpecifyArea
Definition: DtOsgEarthCacheLogic.h:155
DtOsgEarthCacheHandler, using QThread to run the cache process in a separate thread.
Definition: DtOsgEarthCacheHandler.h:33
bool myFlyOver
Definition: DtOsgEarthCacheLogic.h:158
CoordSys
Enumeration of the different coordinate system types.
Definition: DtDisplayUnitsSettingsRecord.h:30
int myMaximumLod
Definition: DtOsgEarthCacheLogic.h:159
Contains the DtSharedDisplayUnitsSettings class declaration.
The abstract Channel Class.
Definition: DtChannel.h:29
Contains makVrv::DtVirtualBaseClass class.
int myLowestLod
Definition: DtOsgEarthCacheLogic.h:160
bool myCacheImageLayers
Definition: DtOsgEarthCacheLogic.h:156
bool myCacheElevationLayers
Definition: DtOsgEarthCacheLogic.h:157
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:24
DtOsgEarthCacheInterface * myInterface
Definition: DtOsgEarthCacheLogic.h:153
int myHighestLod
Definition: DtOsgEarthCacheLogic.h:161
DtOsgEarthCacheInterface Interface class for generating cache data of image/elevation/model.
Definition: DtOsgEarthCacheInterface.h:18
Base class to provide boost signal/slot management.
bool myChannelInitialized
Definition: DtOsgEarthCacheLogic.h:154
DtOsgEarthCacheLogic.
Definition: DtOsgEarthCacheLogic.h:41
DtOsgEarthCacheEditingEventProcessor * myEventProcessor
Definition: DtOsgEarthCacheLogic.h:148
DtOsgGeoExtentRectangle * myCacheArea
Definition: DtOsgEarthCacheLogic.h:150
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
#define DT_DLL_VRVTERRAINEDITOR
Definition: vrvTerrainEditor.h:25
DtSignalConnectionManager mySignals
Definition: DtOsgEarthCacheLogic.h:151

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)