Mercurial > hg > svgui
diff layer/Colour3DPlotRenderer.h @ 1364:7d28e7522dbd
Add show-derivative option but, like inverting the colour scale, I don't think it's as useful as I'd hoped
author | Chris Cannam |
---|---|
date | Tue, 30 Oct 2018 15:32:01 +0000 |
parents | a34a2a25907c |
children | 11a150e65ee1 |
line wrap: on
line diff
--- a/layer/Colour3DPlotRenderer.h Tue Oct 30 14:00:20 2018 +0000 +++ b/layer/Colour3DPlotRenderer.h Tue Oct 30 15:32:01 2018 +0000 @@ -67,6 +67,7 @@ alwaysOpaque(false), interpolate(false), invertVertical(false), + showDerivative(false), scaleFactor(1.0), colourRotation(0) { } @@ -100,6 +101,10 @@ /** Whether to render the whole caboodle upside-down. */ bool invertVertical; + /** Whether to show the frame-to-frame difference instead of + * the actual value */ + bool showDerivative; + /** Initial scale factor (e.g. for FFT scaling). This factor * is applied to all values read from the underlying model * *before* magnitude ranges are calculated, in contrast to @@ -319,6 +324,8 @@ ColumnOp::Column getColumn(int sx, int minbin, int nbins, int peakCacheIndex) const; // -1 => don't use cache + ColumnOp::Column getColumnRaw(int sx, int minbin, int nbins, + int peakCacheIndex) const; // -1 => don't use cache void getPreferredPeakCache(const LayerGeometryProvider *, int &peakCacheIndex, int &binsPerPeak) const;