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.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'colorscale.h') diff --git a/colorscale.h b/colorscale.h index 1eb8c47..ffc3439 100644 --- a/colorscale.h +++ b/colorscale.h @@ -25,6 +25,8 @@ public: template void sample(int samples, OutputIterator it) const; + static QColor lerp(const QColor &c1, const QColor &c2, float _t); + protected: float m_min, m_max; QList m_colors; -- cgit v1.2.3