VR-Forces 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) 2025 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) override;
55 
57  virtual void setStartLongitude(double) override;
58 
60  virtual void setStartLatitude(double) override;
61 
63  virtual void setEndLongitude(double) override;
64 
66  virtual void setEndLatitude(double) override;
67 
70  virtual void setCoordinateSystemDecimal(int digits) override;
71 
73  virtual void setMaxmiumLod(int maximumLod) override;
74 
77  virtual void showCacheFinishedMessageBox() override;
78 
80  virtual void setProgressText(const std::string& s) override;
81 
83  virtual void setProgress(double current, double total) override;
84 
86  virtual void resetCacheAreaWidgets() override;
87 
89  virtual void exit() override;
90 
92  virtual void enableCacheConfigurationWidget(bool enable) override;
93 
95  virtual void enableCacheProgressWidget(bool enable) override;
96 
98  virtual void enableCacheAreaWidget(bool enable) override;
99 
101 
103  virtual void show();
104 
106  virtual void deactivate();
107 
108  private:
109 
113  DtOsgEarthCacheDialog& operator=(const DtOsgEarthCacheDialog&) = delete;
114 
115  protected:
116 
121  DtOsgEarthCacheDialog(DtDe& de, QWidget* parent);
122 
124  void setupGui();
125 
127  void connectSignals();
128 
130  virtual void closeEvent(QCloseEvent* e);
131 
132  public slots:
133  virtual void qt_slot_updateProgress(double, double);
134  virtual void qt_slot_cacheFinished(bool);
135 
136  protected slots:
137 
141  virtual void on_lowestLodSpinBox_valueChanged(int);
142  virtual void on_highestLodSpinBox_valueChanged(int);
143  virtual void on_cacheImageCheckBox_stateChanged(int);
144  virtual void on_cacheElevationCheckBox_stateChanged(int);
145  virtual void on_startLongitudeSpinBox_valueChanged(double);
146  virtual void on_startLatitudeSpinBox_valueChanged(double);
147  virtual void on_endLongitudeSpinBox_valueChanged(double);
148  virtual void on_endLatitudeSpinBox_valueChanged(double);
149  virtual void on_generateCacheButton_clicked();
150  virtual void on_cancelButton_clicked();
152 
153  protected:
154 
157 
158  QVBoxLayout* myMainLayout;
160  QHBoxLayout* myCacheOptionsLayout;
162  QHBoxLayout* myCacheAreaLayout;
171  QHBoxLayout* myCacheLodLayout;
178  QHBoxLayout* myCacheButtonLayout;
181  QVBoxLayout* myProgressLayout;
185 
186  std::string myProgressLabelText;
187  std::string myProgressUpdateText;
188  };
189 
193  : public DtVirtualBaseClass
194  {
195  public:
196  static DtOsgEarthCacheDialogCreator& instance(DtDe& de);
197  static void registerInstance(DtDe& de, DtOsgEarthCacheDialogCreator* creator);
198  virtual DtOsgEarthCacheDialog* create(DtDe& de, QWidget* parent) const;
199  };
200 
201 
202 }
QCheckBox * myCacheImageCheckBox
Definition: DtOsgEarthCacheDialog.h:176
QHBoxLayout * myCacheButtonLayout
Definition: DtOsgEarthCacheDialog.h:178
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:161
std::string myProgressLabelText
Definition: DtOsgEarthCacheDialog.h:186
QDoubleSpinBox * myStartLatitudeSpinBox
Definition: DtOsgEarthCacheDialog.h:166
QDoubleSpinBox * myEndLongitudeSpinBox
Definition: DtOsgEarthCacheDialog.h:168
QLabel * myEndLongitudeLaybol
Definition: DtOsgEarthCacheDialog.h:167
QLabel * myProgressLabel
Definition: DtOsgEarthCacheDialog.h:182
Contains makVrv::DtOsgEarthCacheInterface class.
QHBoxLayout * myCacheOptionsLayout
Definition: DtOsgEarthCacheDialog.h:160
QPushButton * myCloseButton
Definition: DtOsgEarthCacheDialog.h:184
QVBoxLayout * myMainLayout
Definition: DtOsgEarthCacheDialog.h:158
QCheckBox * myCacheElevationCheckBox
Definition: DtOsgEarthCacheDialog.h:177
QPushButton * myCancelCacheButton
Definition: DtOsgEarthCacheDialog.h:180
QSpinBox * myLowestLodSpinBox
Definition: DtOsgEarthCacheDialog.h:173
QProgressBar * myProgressBar
Definition: DtOsgEarthCacheDialog.h:183
QHBoxLayout * myCacheLodLayout
Definition: DtOsgEarthCacheDialog.h:171
QDoubleSpinBox * myEndLatitudeSpinBox
Definition: DtOsgEarthCacheDialog.h:170
QLabel * myHighestLodLabel
Definition: DtOsgEarthCacheDialog.h:174
QLabel * myDescriptionText
Definition: DtOsgEarthCacheDialog.h:159
QHBoxLayout * myCacheAreaLayout
Definition: DtOsgEarthCacheDialog.h:162
std::string myProgressUpdateText
Definition: DtOsgEarthCacheDialog.h:187
DtOsgEarthCacheInterface Interface class for generating cache data of image/elevation/model.
Definition: DtOsgEarthCacheInterface.h:18
DtDe & myDe
Definition: DtOsgEarthCacheDialog.h:155
DtOsgEarthCacheLogic * myLogic
Definition: DtOsgEarthCacheDialog.h:156
DtOsgEarthCacheDialog Widget for generating cache data of image/elevation/model.
Definition: DtOsgEarthCacheDialog.h:40
Contains makVrv::DtOsgEarthCacheLogic class.
QPushButton * myGenerateCacheButton
Definition: DtOsgEarthCacheDialog.h:179
QLabel * myEndLatitudeLaybol
Definition: DtOsgEarthCacheDialog.h:169
DtOsgEarthCacheLogic.
Definition: DtOsgEarthCacheLogic.h:31
QDoubleSpinBox * myStartLongitudeSpinBox
Definition: DtOsgEarthCacheDialog.h:164
QSpinBox * myHighestLodSpinBox
Definition: DtOsgEarthCacheDialog.h:175
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
QLabel * myLowestLodLabel
Definition: DtOsgEarthCacheDialog.h:172
#define DT_DLL_VRVTERRAINEDITOR
Definition: vrvTerrainEditor.h:25
QLabel * myStartLatitudeLaybol
Definition: DtOsgEarthCacheDialog.h:165
QLabel * myStartLongitudeLaybol
Definition: DtOsgEarthCacheDialog.h:163
Creator for the DtOsgEarthCacheDialogCreator.
Definition: DtOsgEarthCacheDialog.h:192
QVBoxLayout * myProgressLayout
Definition: DtOsgEarthCacheDialog.h:181

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)