Add additional colormaps

This commit is contained in:
2025-02-28 10:40:14 +01:00
parent d545c6ca0f
commit d59ee7fddc
8 changed files with 68 additions and 11 deletions
+4
View File
@@ -26,6 +26,7 @@ public:
virtual void bestFit() = 0;
virtual void setBayerMask(int mask) = 0;
virtual void setColormap(int colormap) = 0;
virtual void setOffset(float dx, float dy) = 0;
virtual void allocateThumbnails(const QStringList &paths) = 0;
@@ -63,6 +64,7 @@ class ImageWidgetGL : public QOpenGLWidget, public ImageWidget
std::unique_ptr<QOpenGLVertexArrayObject> m_vaoThumb;
std::unique_ptr<QOpenGLTexture> m_thumbnailTexture;
std::unique_ptr<QOpenGLTexture> m_lut;
std::unique_ptr<QOpenGLTexture> m_colormap;
GLuint m_debayerTex = 0;
std::shared_ptr<RawImage> m_rawImage;
std::shared_ptr<WCSDataT> m_wcs;
@@ -87,6 +89,7 @@ class ImageWidgetGL : public QOpenGLWidget, public ImageWidget
int m_maxTextureSize = 0;
int m_maxArrayLayers = 0;
int m_firstRed[2] = {0, 0};
int m_colormapIdx = 0;
QVector<ImageThumb> m_thumnails;
Database *m_database = nullptr;
QPointF m_lastPos;
@@ -102,6 +105,7 @@ public:
void allocateThumbnails(const QStringList &paths) override;
QVector2D getImagePixelCoord(const QVector2D &pos);
void setBayerMask(int mask) override;
void setColormap(int colormap) override;
void setOffset(float dx, float dy) override;
void setMTFParams(const MTFParam &params) override;
void superPixel(bool enable) override;