DianLi/DEM_GeneVec/DEM_GeneVec.h

80 lines
1.7 KiB
C
Raw Normal View History

2023-03-13 14:13:07 +08:00
#pragma once
#include <QtWidgets/QDialog>
#include <QFileDialog>
#include <QMetaType>
#include <QDialog>
#include <QDebug>
#include <QObject>
#include <QMessageBox>
#include <QPushButton>
#include <QString>
#include <QThread>
#include <QVector>
#include <QIntValidator>
#include "ui_DEM_GeneVec.h"
#include "ThreadObject.h"
#include "SrsMainPluginInterFace.h"
#include "gdal_priv.h"
//#include "gdal_alg_priv.h"
class TrainMoudle : public SrsMainInterface
{
Q_OBJECT
Q_INTERFACES(SrsMainInterface)
Q_PLUGIN_METADATA(IID MainInterface_iid)
public:
TrainMoudle();
~TrainMoudle();
virtual QString PannelName() override;
virtual QString CategoryName() override;
virtual QString EnglishName() override;
virtual QString ChineseName() override;
virtual QString Information() override;
virtual QString IconPath() override;
virtual QWidget* CenterWidget() override;
void startWorkThread();
//<2F><>json<6F>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>ȡ<EFBFBD><C8A1>ʷ<EFBFBD><EFBFBD><E6B4A2>·<EFBFBD><C2B7>
void ReadConfigHistoryPaths(QString strPath);
//<2F><><EFBFBD><EFBFBD>δ򿪵<CEB4>·<EFBFBD><C2B7><EFBFBD><EFBFBD>json<6F>ļ<EFBFBD>
void WriteConfigPaths(QString strPath);
QStringList getAllFiles(QString path, QString fileType);
public slots:
void choseInModel();
void choseInDom();
void choseInDsm();
void choseInLabel();
void choseOutModel();
void addMap();
//pushbutton_OK
void readAndStart();
void pbCancel();
signals:
void start(QString inModel, QString dom, QString dsm, QString label, QString outModel, bool mid, bool train, QString epoch1, QString epoch2);
void killChildThread();
private:
Ui::DEM_GeneVecClass ui;
QDialog* myWidget = nullptr;
WorkThreadObject* mWorkObject = nullptr;
QThread* mThread = nullptr;
bool executeMid = true;
bool executeTrain = true;
};