Mercurial > hg > svgui
changeset 519:43bd47468005
...
author | Chris Cannam |
---|---|
date | Fri, 06 Mar 2009 11:26:28 +0000 |
parents | fe134ec37a2a |
children | 86559bf8219e |
files | layer/Colour3DPlotLayer.cpp |
diffstat | 1 files changed, 11 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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);