GlobeEngine
TerrainPreprocessorUI.h
Go to the documentation of this file.
1 
8 #ifndef GlobeEngine_TerrainPreprocessor_h
9 #define GlobeEngine_TerrainPreprocessor_h
10 
11 #include <QMainWindow>
12 #include "ui_terrainpreprocessor.h"
13 #include "GlobeEngineGeoTiff.h"
14 
15 namespace geTerrainPreprocess {
16 
17  class TileMapService;
18  class TerrainPreprocessorUI : public QMainWindow
19  {
20  Q_OBJECT
21  public:
22  TerrainPreprocessorUI(QWidget *parent = 0, Qt::WindowFlags flags = 0);
24 
25  public slots:
26  void selectMenu(QAction* _action);
27  void start();
28  void browseSource();
29  void browseDestination();
30  void dropEvent(QDropEvent* event) override;
31  void dragEnterEvent(QDragEnterEvent *e) override;
32  void progress(int);
33  void load(const QString& _fileName);
34  void log(std::string _message);
35  void formatChanged();
36  void showMaxEfficient();
37  void lodChanged();
38  void typeChanged();
39  void bpsChanged();
40  void tmsMore();
41  void drawTile1();
42  void drawTile();
43 
44  private:
45  Ui::MainWindow ui;
46  QTimer* update_timer;
47  geoTiffIo::GlobeEngineGeoTiff geotiff;
48  uint32_t totalScanlinesToBeWritten;
49  uint32_t writtenScanlines;
50  int maxLod;
51  bool formatError = false;
52  void formatErrorCheck();
53  QLabel *tileViewerTile;
54  QLabel *tileViewerNormal;
55  QSpinBox *tileVieweru;
56  QSpinBox *tileViewerv;
57  QSpinBox *tileViewerlod;
58  TileMapService *tileViewertms = nullptr;
59  TileMapService *tileViewertmsnormal = nullptr;
60  QSpinBox *tileViewerScale;
61  QLabel *currentTarget;
62  bool tmsExist = false;
63  };
64 }
65 #endif
void dragEnterEvent(QDragEnterEvent *e) override
Definition: TerrainpreProcessorUI.cpp:338
void selectMenu(QAction *_action)
Definition: TerrainpreProcessorUI.cpp:80
void drawTile()
Definition: TerrainpreProcessorUI.cpp:578
void showMaxEfficient()
Definition: TerrainpreProcessorUI.cpp:414
void drawTile1()
Definition: TerrainpreProcessorUI.cpp:592
void progress(int)
Definition: TerrainpreProcessorUI.cpp:332
void start()
Definition: TerrainpreProcessorUI.cpp:144
TerrainPreprocessorUI(QWidget *parent=0, Qt::WindowFlags flags=0)
Definition: TerrainpreProcessorUI.cpp:23
Definition: NormalCommand.h:14
void tmsMore()
Definition: TerrainpreProcessorUI.cpp:534
Definition: TerrainPreprocessorUI.h:18
Definition: TileMapService.hpp:39
~TerrainPreprocessorUI()
Definition: TerrainpreProcessorUI.cpp:77
void browseDestination()
Definition: TerrainpreProcessorUI.cpp:96
void load(const QString &_fileName)
Definition: TerrainpreProcessorUI.cpp:354
void bpsChanged()
Definition: TerrainpreProcessorUI.cpp:492
void formatChanged()
Definition: TerrainpreProcessorUI.cpp:402
void dropEvent(QDropEvent *event) override
Definition: TerrainpreProcessorUI.cpp:345
void typeChanged()
Definition: TerrainpreProcessorUI.cpp:488
void lodChanged()
Definition: TerrainpreProcessorUI.cpp:481
void log(std::string _message)
Definition: TerrainpreProcessorUI.cpp:392
void browseSource()
Definition: TerrainpreProcessorUI.cpp:87