comparison layer/Colour3DPlotRenderer.h @ 1163:ab169938832a 3.0-integration

Use peak cache at one zoom level lower (since it exists at that level already -- this is a >= vs > question) + make naming more uniform
author Chris Cannam
date Tue, 08 Nov 2016 14:55:53 +0000
parents 436df5f24bda
children c036560a7205
comparison
equal deleted inserted replaced
1162:081c7ebf1fea 1163:ab169938832a
46 46
47 class Colour3DPlotRenderer 47 class Colour3DPlotRenderer
48 { 48 {
49 public: 49 public:
50 struct Sources { 50 struct Sources {
51 Sources() : verticalBinLayer(0), source(0), peaks(0), fft(0) { } 51 Sources() : verticalBinLayer(0), source(0), peakCache(0), fft(0) { }
52 52
53 // These must all outlive this class 53 // These must all outlive this class
54 const VerticalBinLayer *verticalBinLayer; // always 54 const VerticalBinLayer *verticalBinLayer; // always
55 const DenseThreeDimensionalModel *source; // always 55 const DenseThreeDimensionalModel *source; // always
56 const Dense3DModelPeakCache *peaks; // optionally 56 const Dense3DModelPeakCache *peakCache; // optionally
57 const FFTModel *fft; // optionally 57 const FFTModel *fft; // optionally
58 }; 58 };
59 59
60 struct Parameters { 60 struct Parameters {
61 Parameters() : 61 Parameters() :
278 int repaintWidth); 278 int repaintWidth);
279 279
280 int renderDrawBuffer(int w, int h, 280 int renderDrawBuffer(int w, int h,
281 const std::vector<int> &binforx, 281 const std::vector<int> &binforx,
282 const std::vector<double> &binfory, 282 const std::vector<double> &binfory,
283 bool usePeaksCache, 283 bool usePeakCache,
284 bool rightToLeft, 284 bool rightToLeft,
285 bool timeConstrained); 285 bool timeConstrained);
286 286
287 int renderDrawBufferPeakFrequencies(const LayerGeometryProvider *v, 287 int renderDrawBufferPeakFrequencies(const LayerGeometryProvider *v,
288 int w, int h, 288 int w, int h,
301 }; 301 };
302 302
303 RenderType decideRenderType(const LayerGeometryProvider *) const; 303 RenderType decideRenderType(const LayerGeometryProvider *) const;
304 304
305 ColumnOp::Column getColumn(int sx, int minbin, int nbins, 305 ColumnOp::Column getColumn(int sx, int minbin, int nbins,
306 bool usePeaksCache) const; 306 bool usePeakCache) const;
307 }; 307 };
308 308
309 #endif 309 #endif
310 310