Mercurial > hg > svgui
comparison layer/Colour3DPlotRenderer.cpp @ 1082:5b4fe7bb9430 spectrogram-minor-refactor
VerticalBinLayer for vertical mapping abstraction. Not totally sure about this
author | Chris Cannam |
---|---|
date | Fri, 01 Jul 2016 09:55:48 +0100 |
parents | cbc7c8675706 |
children | 7122aae95a88 |
comparison
equal
deleted
inserted
replaced
1081:cbc7c8675706 | 1082:5b4fe7bb9430 |
---|---|
19 #include "data/model/DenseThreeDimensionalModel.h" | 19 #include "data/model/DenseThreeDimensionalModel.h" |
20 #include "data/model/Dense3DModelPeakCache.h" | 20 #include "data/model/Dense3DModelPeakCache.h" |
21 #include "data/model/FFTModel.h" | 21 #include "data/model/FFTModel.h" |
22 | 22 |
23 #include "LayerGeometryProvider.h" | 23 #include "LayerGeometryProvider.h" |
24 #include "VerticalBinLayer.h" | |
24 | 25 |
25 #include <vector> | 26 #include <vector> |
26 | 27 |
27 using namespace std; | 28 using namespace std; |
28 | 29 |
264 ColourScale::PhaseColourScale) { | 265 ColourScale::PhaseColourScale) { |
265 usePeaksCache = false; | 266 usePeaksCache = false; |
266 } | 267 } |
267 } | 268 } |
268 } | 269 } |
269 /*!!! | 270 |
270 for (int y = 0; y < h; ++y) { | 271 for (int y = 0; y < h; ++y) { |
271 double q0 = 0, q1 = 0; | 272 binfory[y] = |
272 if (!getSmoothedYBinRange(v, h-y-1, q0, q1)) { | 273 m_sources.verticalBinLayer->getBinForY(m_sources.geometryProvider, y); |
273 binfory[y] = -1; | 274 } |
274 } else { | 275 |
275 binfory[y] = q0; | 276 /* |
276 } | |
277 } | |
278 | |
279 int attainedWidth = renderDrawBuffer(v, | 277 int attainedWidth = renderDrawBuffer(v, |
280 repaintWidth, | 278 repaintWidth, |
281 h, | 279 h, |
282 binforx, | 280 binforx, |
283 binfory, | 281 binfory, |