#ifndef MAPTHREAD_H #define MAPTHREAD_H #include #include #include #include #include #include "geofileparser.h" #include "scenecontrol.h" class LoadTiffSceneData : public QObject,public QRunnable { Q_OBJECT public: explicit LoadTiffSceneData(SceneControl* pSceneControl,UGDataSource* pDataSource,UGString datasetName,QString strPath,UGint importModel,QObject *parent = nullptr); void run() override; signals: void sendTaskName(QString taskName); private: UGDataSource* pDataSource; UGString datasetName; QString strPath; UGint importModel; GeoFileParser geoFileParser; SceneControl* pSceneControl; }; class ShowProgressDialog : public QObject,public QRunnable { Q_OBJECT public: explicit ShowProgressDialog(QObject *parent = nullptr); void run() override; signals: public slots: void closedProgressDialog(); void updateProgressDialog(); private: QProgressDialog* progressDlg; QTimer* timer; int currentValue; }; class ProgressDialogTimer : public QObject,public QRunnable { Q_OBJECT public: explicit ProgressDialogTimer(QObject *parent = nullptr); void run() override; signals: public slots: private: QTimer* timer; }; #endif // MAPTHREAD_H