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 --- colorscale.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'colorscale.cpp') diff --git a/colorscale.cpp b/colorscale.cpp index 06852d4..f41e7d9 100644 --- a/colorscale.cpp +++ b/colorscale.cpp @@ -32,7 +32,7 @@ void ColorScale::setExtents(float min, float max) m_max = max; } -static QColor lerp(const QColor &c1, const QColor &c2, float _t) +QColor ColorScale::lerp(const QColor &c1, const QColor &c2, float _t) { qreal r1, g1, b1, a1; qreal r2, g2, b2, a2; -- cgit v1.2.3