Mercurial > hg > svgui
diff layer/ColourScale.h @ 1324:13d9b422f7fe zoom
Merge from default branch
author | Chris Cannam |
---|---|
date | Mon, 17 Sep 2018 13:51:31 +0100 |
parents | a34a2a25907c |
children | d79e21855aef |
line wrap: on
line diff
--- a/layer/ColourScale.h Mon Dec 12 15:18:52 2016 +0000 +++ b/layer/ColourScale.h Mon Sep 17 13:51:31 2018 +0100 @@ -35,28 +35,28 @@ { public: struct Parameters { - Parameters() : colourMap(0), scaleType(ColourScaleType::Linear), - minValue(0.0), maxValue(1.0), - threshold(0.0), gain(1.0), multiple(1.0) { } + Parameters() : colourMap(0), scaleType(ColourScaleType::Linear), + minValue(0.0), maxValue(1.0), + threshold(0.0), gain(1.0), multiple(1.0) { } - /** A colour map index as used by ColourMapper */ - int colourMap; - - /** Distribution for the scale */ - ColourScaleType scaleType; - - /** Minimum value in source range */ - double minValue; - - /** Maximum value in source range. Must be > minValue */ - double maxValue; + /** A colour map index as used by ColourMapper */ + int colourMap; + + /** Distribution for the scale */ + ColourScaleType scaleType; + + /** Minimum value in source range */ + double minValue; + + /** Maximum value in source range. Must be > minValue */ + double maxValue; - /** Threshold below which every value is mapped to background - pixel 0 */ - double threshold; + /** Threshold below which every value is mapped to background + pixel 0 */ + double threshold; - /** Gain to apply before thresholding, mapping, and clamping */ - double gain; + /** Gain to apply before thresholding, mapping, and clamping */ + double gain; /** Multiple to apply after thresholding and mapping. In most * cases the gain parameter is the one you want instead of @@ -106,7 +106,7 @@ * equivalent to getColourForPixel(getPixel(value), rotation). */ QColor getColour(double value, int rotation) const { - return getColourForPixel(getPixel(value), rotation); + return getColourForPixel(getPixel(value), rotation); } private: