comparison layer/Colour3DPlotLayer.cpp @ 679:41029a6e55c6

Make some debug output optional
author Chris Cannam
date Thu, 21 Nov 2013 12:59:20 +0000
parents d632a1e87018
children 1a0dfcbffaf1
comparison
equal deleted inserted replaced
674:d8bd193ad17d 679:41029a6e55c6
1348 1348
1349 int zoomLevel = v->getZoomLevel(); 1349 int zoomLevel = v->getZoomLevel();
1350 1350
1351 QImage *source = m_cache; 1351 QImage *source = m_cache;
1352 1352
1353 std::cerr << "modelResolution " << modelResolution << ", srRatio " 1353 SVDEBUG << "modelResolution " << modelResolution << ", srRatio "
1354 << srRatio << ", m_peakResolution " << m_peakResolution 1354 << srRatio << ", m_peakResolution " << m_peakResolution
1355 << ", zoomLevel " << zoomLevel << ", result " 1355 << ", zoomLevel " << zoomLevel << ", result "
1356 << ((modelResolution * srRatio * m_peakResolution) / zoomLevel) 1356 << ((modelResolution * srRatio * m_peakResolution) / zoomLevel)
1357 << std::endl; 1357 << endl;
1358 1358
1359 if (m_peaksCache) { 1359 if (m_peaksCache) {
1360 if (((modelResolution * srRatio * m_peakResolution) / zoomLevel) < 1) { 1360 if (((modelResolution * srRatio * m_peakResolution) / zoomLevel) < 1) {
1361 SVDEBUG << "using peaks cache" << endl; 1361 SVDEBUG << "using peaks cache" << endl;
1362 source = m_peaksCache; 1362 source = m_peaksCache;
1363 modelResolution *= m_peakResolution; 1363 modelResolution *= m_peakResolution;
1364 } else { 1364 } else {
1365 std::cerr << "not using peaks cache" << std::endl; 1365 SVDEBUG << "not using peaks cache" << endl;
1366 } 1366 }
1367 } else { 1367 } else {
1368 std::cerr << "have no peaks cache" << std::endl; 1368 SVDEBUG << "have no peaks cache" << endl;
1369 } 1369 }
1370 1370
1371 int psy1i = -1; 1371 int psy1i = -1;
1372 int sw = source->width(); 1372 int sw = source->width();
1373 1373