You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
1.3 KiB
C++
76 lines
1.3 KiB
C++
#ifndef MAPTHREAD_H
|
|
#define MAPTHREAD_H
|
|
|
|
#include <QObject>
|
|
#include <QRunnable>
|
|
#include <QProgressDialog>
|
|
#include <QTimer>
|
|
#include <QElapsedTimer>
|
|
|
|
#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
|