Mercurial > hg > svgui
diff layer/ColourScale.h @ 1266:a34a2a25907c
Untabify
author | Chris Cannam |
---|---|
date | Thu, 01 Mar 2018 18:02:22 +0000 |
parents | 4e7ed3252d80 |
children | d79e21855aef |
line wrap: on
line diff
--- a/layer/ColourScale.h Thu Mar 01 14:43:53 2018 +0000 +++ b/layer/ColourScale.h Thu Mar 01 18:02:22 2018 +0000 @@ -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: