VR-Forces 4.8 Class Documentation
 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) 2019 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 
105  virtual void show();
106 
108  virtual void deactivate();
109 
110  private:
111 
115  DtOsgEarthCacheDialog &operator=(const DtOsgEarthCacheDialog &);
116 
117  protected:
118 
123  DtOsgEarthCacheDialog(DtDe& de, QWidget* parent);
124 
126  void setupGui();
127 
129  void connectSignals();
130 
132  virtual void closeEvent(QCloseEvent* e);
133 
134  public slots:
135  virtual void qt_slot_updateProgress(int progress);
136  virtual void qt_slot_cacheFinished();
137 
138  protected slots:
139 
143  virtual void on_lowestLodSpinBox_valueChanged(int);
144  virtual void on_highestLodSpinBox_valueChanged(int);
145  virtual void on_cacheImageCheckBox_stateChanged(int);
146  virtual void on_cacheElevationCheckBox_stateChanged(int);
147  virtual void on_specifyCacheAreaCheckBox_stateChanged(int);
148  virtual void on_flyOverCheckBox_stateChanged(int);
149  virtual void on_startLongitudeSpinBox_valueChanged(double);
150  virtual void on_startLatitudeSpinBox_valueChanged(double);
151  virtual void on_endLongitudeSpinBox_valueChanged(double);
152  virtual void on_endLatitudeSpinBox_valueChanged(double);
153  virtual void on_generateCacheButton_clicked();
154  virtual void on_clearAreaButtonClicked();
155  virtual void on_cancelButton_clicked();
157 
158  protected:
159 
162 
163  QVBoxLayout* myMainLayout;
165  QHBoxLayout* myCacheOptionsLayout;
170  QHBoxLayout* myCacheAreaLayout;
179  QHBoxLayout* myCacheLodLayout;
186  QHBoxLayout* myCacheButtonLayout;
189  QVBoxLayout* myProgressLayout;
192 
194  };
195 
199  : public DtVirtualBaseClass
200  {
201  public:
202  static DtOsgEarthCacheDialogCreator& instance(DtDe& de);
203  static void registerInstance(DtDe& de, DtOsgEarthCacheDialogCreator* creator);
204  virtual DtOsgEarthCacheDialog* create(DtDe& de, QWidget* parent) const;
205  };
206 
207 
208 }
QCheckBox * myCacheImageCheckBox
Definition: DtOsgEarthCacheDialog.h:184
QHBoxLayout * myCacheButtonLayout
Definition: DtOsgEarthCacheDialog.h:186
Contains DLL export macros.
Virtual base class.
Definition: DtVirtualBaseClass.h:22
QWidget * myCacheAreaWidget
Definition: DtOsgEarthCacheDialog.h:169
QDoubleSpinBox * myStartLatitudeSpinBox
Definition: DtOsgEarthCacheDialog.h:174
QDoubleSpinBox * myEndLongitudeSpinBox
Definition: DtOsgEarthCacheDialog.h:176
QLabel * myEndLongitudeLaybol
Definition: DtOsgEarthCacheDialog.h:175
QLabel * myProgressLabel
Definition: DtOsgEarthCacheDialog.h:190
Contains makVrv::DtOsgEarthCacheInterface class.
QHBoxLayout * myCacheOptionsLayout
Definition: DtOsgEarthCacheDialog.h:165
QCheckBox * mySpecifyCacheAreaCheckBox
Definition: DtOsgEarthCacheDialog.h:166
QPushButton * myCloseButton
Definition: DtOsgEarthCacheDialog.h:193
QVBoxLayout * myMainLayout
Definition: DtOsgEarthCacheDialog.h:163
QCheckBox * myCacheElevationCheckBox
Definition: DtOsgEarthCacheDialog.h:185
QPushButton * myClearAreaButton
Definition: DtOsgEarthCacheDialog.h:168
QCheckBox * myFlyOverCheckBox
Definition: DtOsgEarthCacheDialog.h:167
QPushButton * myCancelCacheButton
Definition: DtOsgEarthCacheDialog.h:188
QSpinBox * myLowestLodSpinBox
Definition: DtOsgEarthCacheDialog.h:181
QProgressBar * myProgressBar
Definition: DtOsgEarthCacheDialog.h:191
QHBoxLayout * myCacheLodLayout
Definition: DtOsgEarthCacheDialog.h:179
QDoubleSpinBox * myEndLatitudeSpinBox
Definition: DtOsgEarthCacheDialog.h:178
QLabel * myHighestLodLabel
Definition: DtOsgEarthCacheDialog.h:182
QLabel * myDescriptionText
Definition: DtOsgEarthCacheDialog.h:164
QHBoxLayout * myCacheAreaLayout
Definition: DtOsgEarthCacheDialog.h:170
DtOsgEarthCacheInterface Interface class for generating cache data of image/elevation/model.
Definition: DtOsgEarthCacheInterface.h:18
DtDe & myDe
Definition: DtOsgEarthCacheDialog.h:160
DtOsgEarthCacheLogic * myLogic
Definition: DtOsgEarthCacheDialog.h:161
DtOsgEarthCacheDialog Widget for generating cache data of image/elevation/model.
Definition: DtOsgEarthCacheDialog.h:40
Contains makVrv::DtOsgEarthCacheLogic class.
QPushButton * myGenerateCacheButton
Definition: DtOsgEarthCacheDialog.h:187
QLabel * myEndLatitudeLaybol
Definition: DtOsgEarthCacheDialog.h:177
DtOsgEarthCacheLogic.
Definition: DtOsgEarthCacheLogic.h:41
QDoubleSpinBox * myStartLongitudeSpinBox
Definition: DtOsgEarthCacheDialog.h:172
QSpinBox * myHighestLodSpinBox
Definition: DtOsgEarthCacheDialog.h:183
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
QLabel * myLowestLodLabel
Definition: DtOsgEarthCacheDialog.h:180
#define DT_DLL_VRVTERRAINEDITOR
Definition: vrvTerrainEditor.h:25
QLabel * myStartLatitudeLaybol
Definition: DtOsgEarthCacheDialog.h:173
QLabel * myStartLongitudeLaybol
Definition: DtOsgEarthCacheDialog.h:171
Creator for the DtOsgEarthCacheDialogCreator.
Definition: DtOsgEarthCacheDialog.h:198
QVBoxLayout * myProgressLayout
Definition: DtOsgEarthCacheDialog.h:189

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)