From fb23c8d47f6dcef429423256d8dddcc0f7184fc4 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Sun, 4 Jun 2023 13:02:14 +0200 Subject: Further advances in nuklear port. Rendering now looks similar to Qt version, needs a few tweaks: * Proper multisampling * Background Missing features: * Barcharts * Interactivity (e.g. brushing/linking in all objects) * History view of interactions --- colormap.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'colormap.h') diff --git a/colormap.h b/colormap.h index 76577f5..7d26a86 100644 --- a/colormap.h +++ b/colormap.h @@ -5,6 +5,7 @@ #include #include +#include #include #include "colorscale.h" @@ -22,6 +23,10 @@ public: Colormap(); ~Colormap(); + GLuint texture() const { return m_texture; } + size_t width() const { return m_width; } + size_t height() const { return m_height; } + void update(); void setOrientation(Orientation orientation); Orientation orientation() const { return m_orientation; } @@ -31,13 +36,12 @@ public: void setColorScale(std::shared_ptr scale); - // QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *); - private: - // QSGNode *newSceneGraph(); + void updateTexture(); - // QSGDynamicTexture *m_texture; - bool m_shouldUpdateTexture, m_shouldUpdateOrientation; + size_t m_width, m_height; + GLuint m_texture; + bool m_shouldUpdateTexture; Orientation m_orientation; std::vector m_cmap; }; -- cgit v1.2.3