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 --- continuouscolorscale.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'continuouscolorscale.h') diff --git a/continuouscolorscale.h b/continuouscolorscale.h index fee17ed..f15abc6 100644 --- a/continuouscolorscale.h +++ b/continuouscolorscale.h @@ -11,13 +11,13 @@ public: enum BuiltinContinuousColorScale { HeatedObjects, - RedGrayBlue, Rainbow, }; - QColor color(qreal t) const; + QColor color(float t) const; - static ContinuousColorScale builtin(enum BuiltinContinuousColorScale); + static ContinuousColorScale builtin(BuiltinContinuousColorScale); + static ContinuousColorScale *builtin(BuiltinContinuousColorScale, void *); }; #endif // CONTINUOUSCOLORSCALE_H -- cgit v1.2.3