60 lines
1.9 KiB
C++
60 lines
1.9 KiB
C++
/**
|
|
* @file ConvertDEMAndMesh.cpp
|
|
* @brief None
|
|
* @author 陈增辉 (3045316072@qq.com)
|
|
* @version 2.5.0
|
|
* @date 24-6-4
|
|
* @copyright Copyright (c) Since 2024 中科卫星应用研究院 All rights reserved.
|
|
*/
|
|
|
|
#include "RasterToolBoxActions.h"
|
|
#include "DialogRasterProjectConvert.h"
|
|
#include "DEM2PointCloud.h"
|
|
|
|
|
|
|
|
namespace LAMPToolBox {
|
|
bool RasterToolBox::initMainWindows(GUI::MainWindow* _mainwindows) {
|
|
if(nullptr==_mainwindows||nullptr==_mainwindows->menuBar()){
|
|
return false;
|
|
}else {
|
|
this->_mainwindows = _mainwindows;
|
|
this->menuBar = _mainwindows->menuBar();
|
|
}
|
|
// 添加 命令
|
|
_toolboxMenu=new QMenu("RasterToolBox");
|
|
// 增加菜单
|
|
QAction* action_RasterProjectMenu=_toolboxMenu->addAction("Raster_ProjectSystem");
|
|
QAction* action_DEM2PointCloud=_toolboxMenu->addAction("DEM->PointCloud");
|
|
QAction* action_DEM2Mesh=_toolboxMenu->addAction("DEM->Mesh");
|
|
|
|
// 事件绑定
|
|
connect(action_RasterProjectMenu, SIGNAL(triggered()),this, SLOT(on_RasterProject_trigged()));
|
|
connect(action_DEM2PointCloud, SIGNAL(triggered()),this, SLOT(on_DEM2PointCloud_trigged()));
|
|
connect(action_DEM2Mesh, SIGNAL(triggered()),this, SLOT(on_DEM2Mesh_trigged()));
|
|
// 添加菜单
|
|
this->menuBar->addMenu(_toolboxMenu);
|
|
return true;
|
|
}
|
|
RasterToolBox::~RasterToolBox() {}
|
|
RasterToolBox::RasterToolBox(QObject* parent)
|
|
: QObject(parent)
|
|
{
|
|
}
|
|
void RasterToolBox::on_DEM2PointCloud_trigged() {
|
|
emit _mainwindows->printMessageToMessageWindow("DEM->PointCloud");
|
|
LAMPToolBox::DEM2PointCloud* dlg=new LAMPToolBox::DEM2PointCloud(_mainwindows);
|
|
dlg->show();
|
|
}
|
|
void RasterToolBox::on_DEM2Mesh_trigged() {
|
|
emit _mainwindows->printMessageToMessageWindow("DEM->mesh");
|
|
|
|
}
|
|
void RasterToolBox::on_RasterProject_trigged() {
|
|
emit _mainwindows->printMessageToMessageWindow("Raster Projector");
|
|
|
|
RasterToolBase::DialogRasterProjectConvert* dlg=new RasterToolBase::DialogRasterProjectConvert(_mainwindows);
|
|
dlg->show();
|
|
}
|
|
|
|
} // namespace LAMPToolBox
|