Mercurial > hg > svgui
diff 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 |
line wrap: on
line diff
--- a/layer/Colour3DPlotRenderer.cpp Thu Jun 30 18:21:11 2016 +0100 +++ b/layer/Colour3DPlotRenderer.cpp Fri Jul 01 09:55:48 2016 +0100 @@ -21,6 +21,7 @@ #include "data/model/FFTModel.h" #include "LayerGeometryProvider.h" +#include "VerticalBinLayer.h" #include <vector> @@ -266,16 +267,13 @@ } } } - /*!!! + for (int y = 0; y < h; ++y) { - double q0 = 0, q1 = 0; - if (!getSmoothedYBinRange(v, h-y-1, q0, q1)) { - binfory[y] = -1; - } else { - binfory[y] = q0; - } + binfory[y] = + m_sources.verticalBinLayer->getBinForY(m_sources.geometryProvider, y); } + /* int attainedWidth = renderDrawBuffer(v, repaintWidth, h,