Mercurial > hg > svgui
comparison 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 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 1363:bbeffb29bf09 | 1364:7d28e7522dbd | 
|---|---|
| 65 binDisplay(BinDisplay::AllBins), | 65 binDisplay(BinDisplay::AllBins), | 
| 66 binScale(BinScale::Linear), | 66 binScale(BinScale::Linear), | 
| 67 alwaysOpaque(false), | 67 alwaysOpaque(false), | 
| 68 interpolate(false), | 68 interpolate(false), | 
| 69 invertVertical(false), | 69 invertVertical(false), | 
| 70 showDerivative(false), | |
| 70 scaleFactor(1.0), | 71 scaleFactor(1.0), | 
| 71 colourRotation(0) { } | 72 colourRotation(0) { } | 
| 72 | 73 | 
| 73 /** A complete ColourScale object by value, used for colour | 74 /** A complete ColourScale object by value, used for colour | 
| 74 * map conversion. Note that the final display gain setting is | 75 * map conversion. Note that the final display gain setting is | 
| 97 */ | 98 */ | 
| 98 bool interpolate; | 99 bool interpolate; | 
| 99 | 100 | 
| 100 /** Whether to render the whole caboodle upside-down. */ | 101 /** Whether to render the whole caboodle upside-down. */ | 
| 101 bool invertVertical; | 102 bool invertVertical; | 
| 103 | |
| 104 /** Whether to show the frame-to-frame difference instead of | |
| 105 * the actual value */ | |
| 106 bool showDerivative; | |
| 102 | 107 | 
| 103 /** Initial scale factor (e.g. for FFT scaling). This factor | 108 /** Initial scale factor (e.g. for FFT scaling). This factor | 
| 104 * is applied to all values read from the underlying model | 109 * is applied to all values read from the underlying model | 
| 105 * *before* magnitude ranges are calculated, in contrast to | 110 * *before* magnitude ranges are calculated, in contrast to | 
| 106 * the display gain found in the ColourScale parameter. */ | 111 * the display gain found in the ColourScale parameter. */ | 
| 317 QImage scaleDrawBufferImage(QImage source, int targetWidth, int targetHeight) | 322 QImage scaleDrawBufferImage(QImage source, int targetWidth, int targetHeight) | 
| 318 const; | 323 const; | 
| 319 | 324 | 
| 320 ColumnOp::Column getColumn(int sx, int minbin, int nbins, | 325 ColumnOp::Column getColumn(int sx, int minbin, int nbins, | 
| 321 int peakCacheIndex) const; // -1 => don't use cache | 326 int peakCacheIndex) const; // -1 => don't use cache | 
| 327 ColumnOp::Column getColumnRaw(int sx, int minbin, int nbins, | |
| 328 int peakCacheIndex) const; // -1 => don't use cache | |
| 322 | 329 | 
| 323 void getPreferredPeakCache(const LayerGeometryProvider *, | 330 void getPreferredPeakCache(const LayerGeometryProvider *, | 
| 324 int &peakCacheIndex, int &binsPerPeak) const; | 331 int &peakCacheIndex, int &binsPerPeak) const; | 
| 325 | 332 | 
| 326 void updateTimings(const RenderTimer &timer, int xPixelCount); | 333 void updateTimings(const RenderTimer &timer, int xPixelCount); | 
