aboutsummaryrefslogtreecommitdiff
path: root/colorscale.h
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2016-03-02 15:47:24 -0300
committerSamuel Fadel <samuelfadel@gmail.com>2016-03-02 15:47:24 -0300
commit3ce49858c6859fccc2e4d35839c34685348790d1 (patch)
tree9919729ae2d094ab3bed9fb45184c027713d9127 /colorscale.h
parent00efaedf4e328604598975a07a497d1ce769bb19 (diff)
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
Diffstat (limited to 'colorscale.h')
-rw-r--r--colorscale.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/colorscale.h b/colorscale.h
index 1eb8c47..ffc3439 100644
--- a/colorscale.h
+++ b/colorscale.h
@@ -25,6 +25,8 @@ public:
template<typename OutputIterator>
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<QColor> m_colors;