From 3ce49858c6859fccc2e4d35839c34685348790d1 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Wed, 2 Mar 2016 15:47:24 -0300 Subject: Improvements related to ColorScale and screenshots. * ColorScale: now a pointer whenever needed. main() takes care of updating extents * New class DivergentColorScale: works specifically for divergent scales, always has 3 colors as input: negative values, 0, positive values * ManipulationHandler: ProjectionHistory no longer needed --- colormap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'colormap.h') diff --git a/colormap.h b/colormap.h index eda4492..1039cfd 100644 --- a/colormap.h +++ b/colormap.h @@ -31,11 +31,11 @@ public: Orientation orientation() const { return m_orientation; } signals: - void colorScaleChanged(const ColorScale &scale) const; + void colorScaleChanged(const ColorScale *scale) const; void orientationChanged(Orientation orientation) const; public slots: - void setColorScale(const ColorScale &scale); + void setColorScale(const ColorScale *scale); protected: QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *); -- cgit v1.2.3