Mercurial > hg > svgui
diff layer/Colour3DPlotLayer.cpp @ 1113:261a00010918 spectrogram-minor-refactor
Consts and willRenderOpaque
author | Chris Cannam |
---|---|
date | Tue, 19 Jul 2016 14:49:46 +0100 |
parents | edbe229860ac |
children | a42e5a3c63ef |
line wrap: on
line diff
--- a/layer/Colour3DPlotLayer.cpp Tue Jul 19 10:12:30 2016 +0100 +++ b/layer/Colour3DPlotLayer.cpp Tue Jul 19 14:49:46 2016 +0100 @@ -614,9 +614,9 @@ if (m_normalizeVisibleArea) { return false; } -//!!! if (shouldPaintDenseIn(v)) { -// return true; -// } + if (getRenderer(v)->willRenderOpaque(v)) { + return true; + } QPoint discard; return !v->shouldIlluminateLocalFeatures(this, discard); } @@ -724,7 +724,7 @@ } double -Colour3DPlotLayer::getYForBin(LayerGeometryProvider *v, double bin) const +Colour3DPlotLayer::getYForBin(const LayerGeometryProvider *v, double bin) const { double y = bin; if (!m_model) return y; @@ -742,7 +742,7 @@ } double -Colour3DPlotLayer::getBinForY(LayerGeometryProvider *v, double y) const +Colour3DPlotLayer::getBinForY(const LayerGeometryProvider *v, double y) const { double bin = y; if (!m_model) return bin; @@ -1064,7 +1064,7 @@ } */ Colour3DPlotRenderer * -Colour3DPlotLayer::getRenderer(LayerGeometryProvider *v) const +Colour3DPlotLayer::getRenderer(const LayerGeometryProvider *v) const { if (m_renderers.find(v->getId()) == m_renderers.end()) {