# HG changeset patch # User Chris Cannam # Date 1236338788 0 # Node ID 43bd47468005cfdef8322f0ef2c7d1be2f2c19cb # Parent fe134ec37a2a63bb572278d58746c87dcebf913f ... diff -r fe134ec37a2a -r 43bd47468005 layer/Colour3DPlotLayer.cpp --- a/layer/Colour3DPlotLayer.cpp Fri Mar 06 10:23:30 2009 +0000 +++ b/layer/Colour3DPlotLayer.cpp Fri Mar 06 11:26:28 2009 +0000 @@ -762,7 +762,9 @@ size_t modelEnd = m_model->getEndFrame(); size_t modelResolution = m_model->getResolution(); -// std::cerr << "Colour3DPlotLayer::fillCache: " << firstBin << " -> " << lastBin << std::endl; +#ifdef DEBUG_COLOUR_3D_PLOT_LAYER_PAINT + std::cerr << "Colour3DPlotLayer::fillCache: " << firstBin << " -> " << lastBin << std::endl; +#endif size_t modelStartBin = modelStart / modelResolution; size_t modelEndBin = modelEnd / modelResolution; @@ -812,6 +814,9 @@ } if (m_cacheValidStart <= firstBin && m_cacheValidEnd >= lastBin) { +#ifdef DEBUG_COLOUR_3D_PLOT_LAYER_PAINT + std::cerr << "Cache is valid in this region already" << std::endl; +#endif return; } @@ -845,7 +850,9 @@ m_cacheValidEnd = fillEnd; } -// std::cerr << "Cache size " << cacheWidth << "x" << cacheHeight << " will be valid from " << m_cacheValidStart << " to " << m_cacheValidEnd << std::endl; +#ifdef DEBUG_COLOUR_3D_PLOT_LAYER_PAINT + std::cerr << "Cache size " << cacheWidth << "x" << cacheHeight << " will be valid from " << m_cacheValidStart << " to " << m_cacheValidEnd << std::endl; +#endif DenseThreeDimensionalModel::Column values; @@ -1124,8 +1131,8 @@ } #ifdef DEBUG_COLOUR_3D_PLOT_LAYER_PAINT - std::cerr << "rect " << r.x() << "," << r.y() << " " - << r.width() << "x" << r.height() << std::endl; +// std::cerr << "rect " << r.x() << "," << r.y() << " " +// << r.width() << "x" << r.height() << std::endl; #endif paint.drawRect(r);