增加修改关闭文件管理

pull/10/head
陈增辉 2025-04-11 11:29:12 +08:00
parent 609e140bd9
commit 0a1497ac5e
4 changed files with 15 additions and 4 deletions

View File

@ -328,7 +328,7 @@ ErrorCode BASECONSTVARIABLEAPI Complex2AmpRaster(QString inComplexPath, QString
ErrorCode BASECONSTVARIABLEAPI ResampleDEM(QString indemPath, QString outdemPath, double gridx, double gridy);
void BASECONSTVARIABLEAPI CloseAllGDALRaster();

View File

@ -1665,6 +1665,12 @@ ErrorCode ResampleDEM(QString indemPath, QString outdemPath, double gridx, doubl
}
}
void BASECONSTVARIABLEAPI CloseAllGDALRaster()
{
GDALDestroyDriverManager();
return ;
}
ErrorCode Complex2AmpRaster(QString inComplexPath, QString outRasterPath)

View File

@ -14,7 +14,7 @@
#include "FileOperator.h"
#include "RasterWidgetMessageShow.h"
#include "ImageOperatorBase.h"
#pragma execution_character_set("utf-8")
@ -59,7 +59,7 @@ RasterMainWidget::RasterMainWidget(QWidget *parent)
//mUi->layerList->setCurrentItem(mLayerList.first());
connect(mUi->actioncloseAllRasterFile, SIGNAL(triggered()), this, SLOT(onactioncloseAllRasterFile_triggered()));
}
@ -341,6 +341,11 @@ void RasterMainWidget::on_addPlaneaction_triggered()
mMapConvas->selectTool("addplane_tool");
}
void RasterMainWidget::onactioncloseAllRasterFile_triggered()
{
CloseAllGDALRaster();
}
QTableWidget* RasterMainWidget::getTaskTable()
{
return this->mUi->taskTable;

View File

@ -77,7 +77,7 @@ namespace LAMPMainWidget {
private slots:
void on_drawArea_triggered();
void on_addPlaneaction_triggered();
void onactioncloseAllRasterFile_triggered();
private:
Ui::RasterMainWidget* mUi;
MapCanvas* mMapConvas;