Mercurial > hg > svgui
changeset 514:4ba0476ebbb6
* Activity log updates
* Update range lists in play source when a new model is added
* Fill cache with empty background in colour 3d plot
author | Chris Cannam |
---|---|
date | Fri, 27 Feb 2009 13:33:16 +0000 |
parents | 1341e95eeae9 |
children | ff1dc4f302bd |
files | layer/Colour3DPlotLayer.cpp widgets/CommandHistory.cpp |
diffstat | 2 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/layer/Colour3DPlotLayer.cpp Thu Feb 26 16:58:25 2009 +0000 +++ b/layer/Colour3DPlotLayer.cpp Fri Feb 27 13:33:16 2009 +0000 @@ -796,11 +796,13 @@ m_cache = new QImage (cacheWidth, cacheHeight, QImage::Format_Indexed8); m_cache->setNumColors(256); + m_cache->fill(0); if (!m_normalizeVisibleArea) { m_peaksCache = new QImage (cacheWidth / m_peakResolution + 1, cacheHeight, QImage::Format_Indexed8); m_peaksCache->setNumColors(256); + m_peaksCache->fill(0); } else if (m_peaksCache) { delete m_peaksCache; m_peaksCache = 0; @@ -880,8 +882,6 @@ } } -// m_cache->fill(0); - float visibleMax = 0.f, visibleMin = 0.f; if (normalizeVisible) { @@ -986,10 +986,11 @@ void Colour3DPlotLayer::paint(View *v, QPainter &paint, QRect rect) const { +/* if (m_model) { std::cerr << "Colour3DPlotLayer::paint: model says shouldUseLogValueScale = " << m_model->shouldUseLogValueScale() << std::endl; } - +*/ Profiler profiler("Colour3DPlotLayer::paint"); #ifdef DEBUG_COLOUR_3D_PLOT_LAYER_PAINT std::cerr << "Colour3DPlotLayer::paint(): m_model is " << m_model << ", zoom level is " << v->getZoomLevel() << std::endl;