VR-Forces 4.10 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) 2021 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 
90  virtual void slot_leftMouseDoubleClick();
91 
95  virtual void slot_mouseMove(double mouseX, double mouseY);
96 
101  virtual void slot_leftMouseButtonRealeased(DtChannel* channel, double mouseX, double mouseY);
102 
104 
109  virtual void slot_vertexChanged(int index, double longtitude, double latitude);
110 
112  virtual void slot_exit();
113 
115  virtual void slot_postTick();
116 
118  virtual void slot_osgEarthTerrainDefinitionChanged(const std::string& osgEarthTerrainDefinition);
119 
121  virtual void slot_lowestLodChanged(int);
123  virtual void slot_highestLodChanged(int);
124  virtual void slot_cacheImageChanged(bool);
125  virtual void slot_cacheElevationChanged(bool);
126  virtual void slot_flyOverCheckBoxChanged(bool);
127  virtual void slot_specifyCacheAreaCheckBoxChanged(bool);
128  virtual void slot_startLongitudeChanged(double);
129  virtual void slot_startLatitudeChanged(double);
130  virtual void slot_endLongitudeChanged(double);
131  virtual void slot_endLatitudeChanged(double);
132  virtual void slot_generateCacheButtonClicked();
133  virtual void slot_cleanAreaButtonClicked();
134  virtual void slot_cancelButtonClicked();
135  virtual void slot_cacheFinished();
137 
138  private:
139 
143  DtOsgEarthCacheLogic &operator=(const DtOsgEarthCacheLogic &);
144 
145  protected:
156  bool myFlyOver;
161  };
162 
166  : public DtVirtualBaseClass
167  {
168  public:
169 
170  // Get the creator instance for this DE object. Creates instance if none found
171  static DtOsgEarthCacheLogicCreator& instance(DtDe& de);
172 
173  static void registerInstance(DtDe& de, DtOsgEarthCacheLogicCreator* creator);
174 
175  //Create the widget's logic.
176  virtual DtOsgEarthCacheLogic* create(DtDe& de, DtOsgEarthCacheInterface* iface);
177  };
178 }
Contains DLL export macros.
Virtual base class.
Definition: DtVirtualBaseClass.h:19
DtOsgEarthCacheHandler * myHandler
Definition: DtOsgEarthCacheLogic.h:147
bool myDontShowWarningDialogAgain
Definition: DtOsgEarthCacheLogic.h:160
Creator class for DtOsgEarthCacheLogic.
Definition: DtOsgEarthCacheLogic.h:165
A rectangle defines an axis-aligned geospatial extent.
Definition: DtOsgGeoExtentRectangle.h:29
DtDe & myDe
Definition: DtOsgEarthCacheLogic.h:150
DtOsgEarthCacheEditingEventProcessor - This class handles the events of selecting cache area...
Definition: DtOsgEarthCacheEditingEventProcessor.h:32
bool mySpecifyArea
Definition: DtOsgEarthCacheLogic.h:153
DtOsgEarthCacheHandler, using QThread to run the cache process in a separate thread.
Definition: DtOsgEarthCacheHandler.h:33
bool myFlyOver
Definition: DtOsgEarthCacheLogic.h:156
int myMaximumLod
Definition: DtOsgEarthCacheLogic.h:157
Contains the DtSharedDisplayUnitsSettings class declaration.
The abstract Channel Class.
Definition: DtChannel.h:30
Contains makVrv::DtVirtualBaseClass class.
int myLowestLod
Definition: DtOsgEarthCacheLogic.h:158
bool myCacheImageLayers
Definition: DtOsgEarthCacheLogic.h:154
bool myCacheElevationLayers
Definition: DtOsgEarthCacheLogic.h:155
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
DtOsgEarthCacheInterface * myInterface
Definition: DtOsgEarthCacheLogic.h:151
int myHighestLod
Definition: DtOsgEarthCacheLogic.h:159
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:152
DtOsgEarthCacheLogic.
Definition: DtOsgEarthCacheLogic.h:41
DtOsgEarthCacheEditingEventProcessor * myEventProcessor
Definition: DtOsgEarthCacheLogic.h:146
DtOsgGeoExtentRectangle * myCacheArea
Definition: DtOsgEarthCacheLogic.h:148
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:149

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)