1、基于新框架实现点击显示光谱;
2、影像拉伸显示优化;
3、右键菜单新增:移除所有栅格图层;
This commit is contained in:
tangchao0503
2026-03-06 17:33:30 +08:00
parent 4ad5c8b91e
commit 09095592af
10 changed files with 310 additions and 104 deletions

View File

@ -3,6 +3,7 @@
#include "MapLayer.h"
#include <memory>
#include <QImage>
#include <QVector>
class RasterDataProvider;
class RasterRenderer;
@ -23,12 +24,15 @@ public:
// Create or open provider based on this layer's uri
bool openDataProvider();
bool isValidPixel(int x, int y);
bool readPixelSpectrum(int x, int y, QVector<double>& wavelengths, QVector<double>& spectrum);
struct RenderParams {
double rWave = 665.0; // default wavelengths (nm)
double gWave = 560.0;
double bWave = 490.0;
double minValue = 0.0; // optional stretch
double maxValue = 255.0;
double maxValue = 4095.0;
};
// Render the raster using current provider and renderer. Returns an empty QImage on failure.