comparison layer/Colour3DPlotRenderer.cpp @ 1171:84042e8c3c03 3.0-integration

More debug
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 28 Nov 2016 14:39:59 +0000
parents 958e352919a5
children a1ee3108d1d3
comparison
equal deleted inserted replaced
1170:958e352919a5 1171:84042e8c3c03
798 Profiler profiler("Colour3DPlotRenderer::renderDrawBuffer"); 798 Profiler profiler("Colour3DPlotRenderer::renderDrawBuffer");
799 799
800 int divisor = 1; 800 int divisor = 1;
801 const DenseThreeDimensionalModel *sourceModel = m_sources.source; 801 const DenseThreeDimensionalModel *sourceModel = m_sources.source;
802 if (usePeakCache) { 802 if (usePeakCache) {
803 cerr << "usePeakCache is true, with divisor " << divisor << endl;
804 divisor = m_sources.peakCache->getColumnsPerPeak(); 803 divisor = m_sources.peakCache->getColumnsPerPeak();
805 sourceModel = m_sources.peakCache; 804 sourceModel = m_sources.peakCache;
806 } else { 805 }
807 cerr << "usePeakCache is false" << endl; 806
808 } 807 SVDEBUG << "renderDrawBuffer: w = " << w << ", h = " << h
809 808 << ", usePeakCache = " << usePeakCache << " (divisor = "
809 << divisor << "), rightToLeft = " << rightToLeft
810 << ", timeConstrained = " << timeConstrained << endl;
811 SVDEBUG << "renderDrawBuffer: normalization = " << int(m_params.normalization)
812 << ", binDisplay = " << int(m_params.binDisplay)
813 << ", binScale = " << int(m_params.binScale)
814 << ", alwaysOpaque = " << m_params.alwaysOpaque
815 << ", interpolate = " << m_params.interpolate << endl;
816
810 int sh = sourceModel->getHeight(); 817 int sh = sourceModel->getHeight();
811 818
812 int minbin = int(binfory[0] + 0.0001); 819 int minbin = int(binfory[0] + 0.0001);
813 if (minbin >= sh) minbin = sh - 1; 820 if (minbin >= sh) minbin = sh - 1;
814 if (minbin < 0) minbin = 0; 821 if (minbin < 0) minbin = 0;