VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgEarthCacheDialog.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 
12 #if !defined(Q_MOC_RUN)
16 #endif
17 
18 #include <QtWidgets/QDialog>
19 
20 // Class Forward Declarations
21 class QCheckBox;
22 class QHBoxLayout;
23 class QLabel;
24 class QPushButton;
25 class QProgressBar;
26 class QSlider;
27 class QSpinBox;
28 class QDoubleSpinBox;
29 class QVBoxLayout;
30 
31 namespace makVrv
32 {
33  // Class Forward Declarations
34  class DtDe;
35  class DtOsgEarthCacheLogic;
36 
41  : public QDialog
43  {
44  Q_OBJECT
45  public:
47 
49  virtual ~DtOsgEarthCacheDialog();
50 
52 
54  virtual void setOsgEarthTerrainDefinition(const std::string& osgEarthTerrainDefinition);
55 
57  virtual void setStartLongitude(double);
58 
60  virtual void setStartLatitude(double);
61 
63  virtual void setEndLongitude(double);
64 
66  virtual void setEndLatitude(double);
67 
70  virtual void setCoordinateSystemDecimal(int digits);
71 
73  virtual void setMaxmiumLod(int maximumLod);
74 
77  virtual void showCacheFinishedMessageBox();
78 
82  virtual bool showAreaUnspecifiedMessageBox(bool& dontShowAgain);
83 
85  virtual void setProgressText(const std::string& s);
86 
88  virtual void setProgress(int progress);
89 
91  virtual void resetCacheAreaWidgets();
92 
94  virtual void exit();
95 
97  virtual void enableCacheConfigurationWidget(bool enable);
98 
100  virtual void enableCacheProgressWidget(bool enable);
101 
103  virtual void enableCacheAreaWidget(bool enable);
104 
106 
108  virtual void show();
109 
111  virtual void deactivate();
112 
113  private:
114 
118  DtOsgEarthCacheDialog &operator=(const DtOsgEarthCacheDialog &);
119 
120  protected:
121 
126  DtOsgEarthCacheDialog(DtDe& de, QWidget* parent);
127 
129  void setupGui();
130 
132  void connectSignals();
133 
135  virtual void closeEvent(QCloseEvent* e);
136 
137  public slots:
138  virtual void qt_slot_updateProgress(int progress);
139  virtual void qt_slot_cacheFinished();
140 
141  protected slots:
142 
146  virtual void on_lowestLodSpinBox_valueChanged(int);
147  virtual void on_highestLodSpinBox_valueChanged(int);
148  virtual void on_cacheImageCheckBox_stateChanged(int);
149  virtual void on_cacheElevationCheckBox_stateChanged(int);
150  virtual void on_specifyCacheAreaCheckBox_stateChanged(int);
151  virtual void on_flyOverCheckBox_stateChanged(int);
152  virtual void on_startLongitudeSpinBox_valueChanged(double);
153  virtual void on_startLatitudeSpinBox_valueChanged(double);
154  virtual void on_endLongitudeSpinBox_valueChanged(double);
155  virtual void on_endLatitudeSpinBox_valueChanged(double);
156  virtual void on_generateCacheButton_clicked();
157  virtual void on_clearAreaButtonClicked();
158  virtual void on_cancelButton_clicked();
160 
161  protected:
162 
165 
166  QVBoxLayout* myMainLayout;
168  QHBoxLayout* myCacheOptionsLayout;
173  QHBoxLayout* myCacheAreaLayout;
182  QHBoxLayout* myCacheLodLayout;
189  QHBoxLayout* myCacheButtonLayout;
192  QVBoxLayout* myProgressLayout;
195 
197  };
198 
202  : public DtVirtualBaseClass
203  {
204  public:
205  static DtOsgEarthCacheDialogCreator& instance(DtDe& de);
206  static void registerInstance(DtDe& de, DtOsgEarthCacheDialogCreator* creator);
207  virtual DtOsgEarthCacheDialog* create(DtDe& de, QWidget* parent) const;
208  };
209 
210 
211 }
QCheckBox * myCacheImageCheckBox
Definition: DtOsgEarthCacheDialog.h:187
QHBoxLayout * myCacheButtonLayout
Definition: DtOsgEarthCacheDialog.h:189
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
QWidget * myCacheAreaWidget
Definition: DtOsgEarthCacheDialog.h:172
QDoubleSpinBox * myStartLatitudeSpinBox
Definition: DtOsgEarthCacheDialog.h:177
QDoubleSpinBox * myEndLongitudeSpinBox
Definition: DtOsgEarthCacheDialog.h:179
QLabel * myEndLongitudeLaybol
Definition: DtOsgEarthCacheDialog.h:178
QLabel * myProgressLabel
Definition: DtOsgEarthCacheDialog.h:193
Contains makVrv::DtOsgEarthCacheInterface class.
QHBoxLayout * myCacheOptionsLayout
Definition: DtOsgEarthCacheDialog.h:168
QCheckBox * mySpecifyCacheAreaCheckBox
Definition: DtOsgEarthCacheDialog.h:169
QPushButton * myCloseButton
Definition: DtOsgEarthCacheDialog.h:196
QVBoxLayout * myMainLayout
Definition: DtOsgEarthCacheDialog.h:166
QCheckBox * myCacheElevationCheckBox
Definition: DtOsgEarthCacheDialog.h:188
QPushButton * myClearAreaButton
Definition: DtOsgEarthCacheDialog.h:171
QCheckBox * myFlyOverCheckBox
Definition: DtOsgEarthCacheDialog.h:170
QPushButton * myCancelCacheButton
Definition: DtOsgEarthCacheDialog.h:191
QSpinBox * myLowestLodSpinBox
Definition: DtOsgEarthCacheDialog.h:184
QProgressBar * myProgressBar
Definition: DtOsgEarthCacheDialog.h:194
QHBoxLayout * myCacheLodLayout
Definition: DtOsgEarthCacheDialog.h:182
QDoubleSpinBox * myEndLatitudeSpinBox
Definition: DtOsgEarthCacheDialog.h:181
QLabel * myHighestLodLabel
Definition: DtOsgEarthCacheDialog.h:185
QLabel * myDescriptionText
Definition: DtOsgEarthCacheDialog.h:167
QHBoxLayout * myCacheAreaLayout
Definition: DtOsgEarthCacheDialog.h:173
DtOsgEarthCacheInterface Interface class for generating cache data of image/elevation/model.
Definition: DtOsgEarthCacheInterface.h:18
DtDe & myDe
Definition: DtOsgEarthCacheDialog.h:163
DtOsgEarthCacheLogic * myLogic
Definition: DtOsgEarthCacheDialog.h:164
DtOsgEarthCacheDialog Widget for generating cache data of image/elevation/model.
Definition: DtOsgEarthCacheDialog.h:40
Contains makVrv::DtOsgEarthCacheLogic class.
QPushButton * myGenerateCacheButton
Definition: DtOsgEarthCacheDialog.h:190
QLabel * myEndLatitudeLaybol
Definition: DtOsgEarthCacheDialog.h:180
DtOsgEarthCacheLogic.
Definition: DtOsgEarthCacheLogic.h:41
QDoubleSpinBox * myStartLongitudeSpinBox
Definition: DtOsgEarthCacheDialog.h:175
QSpinBox * myHighestLodSpinBox
Definition: DtOsgEarthCacheDialog.h:186
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
QLabel * myLowestLodLabel
Definition: DtOsgEarthCacheDialog.h:183
#define DT_DLL_VRVTERRAINEDITOR
Definition: vrvTerrainEditor.h:25
QLabel * myStartLatitudeLaybol
Definition: DtOsgEarthCacheDialog.h:176
QLabel * myStartLongitudeLaybol
Definition: DtOsgEarthCacheDialog.h:174
Creator for the DtOsgEarthCacheDialogCreator.
Definition: DtOsgEarthCacheDialog.h:201
QVBoxLayout * myProgressLayout
Definition: DtOsgEarthCacheDialog.h:192

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)