Mercurial > hg > svgui
comparison layer/Colour3DPlotRenderer.cpp @ 1096:6288f1b5f49b spectrogram-minor-refactor
Far more pragmatic update strategy
author | Chris Cannam |
---|---|
date | Mon, 11 Jul 2016 14:37:03 +0100 |
parents | ba62684a4512 |
children | 92ac1fce7102 |
comparison
equal
deleted
inserted
replaced
1095:ba62684a4512 | 1096:6288f1b5f49b |
---|---|
38 Colour3DPlotRenderer::RenderResult | 38 Colour3DPlotRenderer::RenderResult |
39 Colour3DPlotRenderer::renderTimeConstrained(LayerGeometryProvider *v, | 39 Colour3DPlotRenderer::renderTimeConstrained(LayerGeometryProvider *v, |
40 QPainter &paint, QRect rect) | 40 QPainter &paint, QRect rect) |
41 { | 41 { |
42 return render(v, paint, rect, true); | 42 return render(v, paint, rect, true); |
43 } | |
44 | |
45 QRect | |
46 Colour3DPlotRenderer::getLargestUncachedRect() | |
47 { | |
48 int h = m_cache.getSize().height(); | |
49 | |
50 QRect areaLeft(0, 0, m_cache.getValidLeft(), h); | |
51 QRect areaRight(m_cache.getValidRight(), 0, | |
52 m_cache.getSize().width() - m_cache.getValidRight(), h); | |
53 | |
54 if (areaRight.width() > areaLeft.width()) { | |
55 return areaRight; | |
56 } else { | |
57 return areaLeft; | |
58 } | |
43 } | 59 } |
44 | 60 |
45 Colour3DPlotRenderer::RenderResult | 61 Colour3DPlotRenderer::RenderResult |
46 Colour3DPlotRenderer::render(LayerGeometryProvider *v, | 62 Colour3DPlotRenderer::render(LayerGeometryProvider *v, |
47 QPainter &paint, QRect rect, bool timeConstrained) | 63 QPainter &paint, QRect rect, bool timeConstrained) |
182 | 198 |
183 //!!! todo: peak frequency style | 199 //!!! todo: peak frequency style |
184 | 200 |
185 //!!! todo: transparent style from Colour3DPlot | 201 //!!! todo: transparent style from Colour3DPlot |
186 | 202 |
187 //!!! todo: bin boundary alignment when in BinResolution | |
188 | |
189 //!!! todo: view magnitudes / normalise visible area | 203 //!!! todo: view magnitudes / normalise visible area |
190 | 204 |
191 //!!! todo: alter documentation for view mag stuff (cached paints | 205 //!!! todo: alter documentation for view mag stuff (cached paints |
192 //!!! do not update MagnitudeRange) | 206 //!!! do not update MagnitudeRange) |
193 | 207 |