119 lines
3.0 KiB
C++
119 lines
3.0 KiB
C++
#include "BaseToolbox.h"
|
|
#include "QToolAbstract.h"
|
|
#include "QImportGF3StripL1ADataset.h"
|
|
#include "QComplex2AmpPhase.h"
|
|
#include "QRDOrthProcessClass.h"
|
|
#include "QOrthSlrRaster.h"
|
|
#include "QMergeRasterProcessDialog.h"
|
|
#include "RasterMainWidget.h"
|
|
#include "ToolBoxWidget.h"
|
|
|
|
|
|
|
|
|
|
GF3ImportDataToolButton::GF3ImportDataToolButton(QWidget* parent) :QToolAbstract(parent)
|
|
{
|
|
this->toolPath = QVector<QString>(0);
|
|
this->toolPath.push_back(u8"数据导入导出");
|
|
this->toolname = QString(u8"导入GF3条带");
|
|
}
|
|
|
|
GF3ImportDataToolButton::~GF3ImportDataToolButton()
|
|
{
|
|
}
|
|
|
|
void GF3ImportDataToolButton::excute()
|
|
{
|
|
QImportGF3StripL1ADataset* dialog = new QImportGF3StripL1ADataset();
|
|
dialog->show();
|
|
}
|
|
|
|
Complex2AmpPhaseToolButton::Complex2AmpPhaseToolButton(QWidget* parent) :QToolAbstract(parent)
|
|
{
|
|
this->toolPath = QVector<QString>(0);
|
|
this->toolPath.push_back(u8"基础处理");
|
|
this->toolname = QString(u8"复数据转换");
|
|
}
|
|
|
|
Complex2AmpPhaseToolButton::~Complex2AmpPhaseToolButton()
|
|
{
|
|
}
|
|
|
|
void Complex2AmpPhaseToolButton::excute()
|
|
{
|
|
QComplex2AmpPhase* dialog = new QComplex2AmpPhase();
|
|
dialog->show();
|
|
|
|
}
|
|
|
|
QRDOrthProcessClassToolButton::QRDOrthProcessClassToolButton(QWidget* parent) :QToolAbstract(parent)
|
|
{
|
|
this->toolPath = QVector<QString>(0);
|
|
this->toolPath.push_back(u8"基础处理");
|
|
this->toolname = QString(u8"创建查找表");
|
|
}
|
|
|
|
QRDOrthProcessClassToolButton::~QRDOrthProcessClassToolButton()
|
|
{
|
|
}
|
|
|
|
void QRDOrthProcessClassToolButton::excute()
|
|
{
|
|
QRDOrthProcessClass* dialog = new QRDOrthProcessClass();
|
|
dialog->show();
|
|
}
|
|
|
|
QOrthSlrRasterToolButton::QOrthSlrRasterToolButton(QWidget* parent) :QToolAbstract(parent)
|
|
{
|
|
this->toolPath = QVector<QString>(0);
|
|
this->toolPath.push_back(u8"基础处理");
|
|
this->toolname = QString(u8"图像正射");
|
|
}
|
|
|
|
QOrthSlrRasterToolButton::~QOrthSlrRasterToolButton()
|
|
{
|
|
}
|
|
|
|
void QOrthSlrRasterToolButton::excute()
|
|
{
|
|
QOrthSlrRaster* dialog = new QOrthSlrRaster();
|
|
dialog->show();
|
|
}
|
|
|
|
MergeRasterProcessToolButton::MergeRasterProcessToolButton(QWidget* parent) :QToolAbstract(parent)
|
|
{
|
|
this->toolPath = QVector<QString>(0);
|
|
this->toolPath.push_back(u8"基础处理");
|
|
this->toolname = QString(u8"图像合并");
|
|
}
|
|
|
|
MergeRasterProcessToolButton::~MergeRasterProcessToolButton()
|
|
{
|
|
}
|
|
|
|
void MergeRasterProcessToolButton::excute()
|
|
{
|
|
QMergeRasterProcessDialog* dialog = new QMergeRasterProcessDialog();
|
|
dialog->show();
|
|
}
|
|
|
|
|
|
|
|
void RegisterPreToolBox(LAMPMainWidget::RasterMainWidget* mainwindows, ToolBoxWidget* toolbox)
|
|
{
|
|
GF3ImportDataToolButton* items1 = new GF3ImportDataToolButton(toolbox);
|
|
Complex2AmpPhaseToolButton* items2 = new Complex2AmpPhaseToolButton(toolbox);
|
|
QRDOrthProcessClassToolButton* items3 = new QRDOrthProcessClassToolButton(toolbox);
|
|
QOrthSlrRasterToolButton* items4 = new QOrthSlrRasterToolButton(toolbox);
|
|
MergeRasterProcessToolButton* items5 = new MergeRasterProcessToolButton(toolbox);
|
|
|
|
|
|
emit toolbox->addBoxToolItemSIGNAL(items1);
|
|
emit toolbox->addBoxToolItemSIGNAL(items2);
|
|
emit toolbox->addBoxToolItemSIGNAL(items3);
|
|
emit toolbox->addBoxToolItemSIGNAL(items4);
|
|
emit toolbox->addBoxToolItemSIGNAL(items5);
|
|
|
|
|
|
}
|