diff layer/RegionLayer.cpp @ 585:f4960f8ce798 debug-output

Convert many cerrs to DEBUGs
author Chris Cannam
date Mon, 16 May 2011 17:19:25 +0100
parents 5bcfc5606528
children 4806715f7a19
line wrap: on
line diff
--- a/layer/RegionLayer.cpp	Thu May 12 17:31:43 2011 +0100
+++ b/layer/RegionLayer.cpp	Mon May 16 17:19:25 2011 +0100
@@ -61,7 +61,7 @@
     connect(m_model, SIGNAL(modelChanged()), this, SLOT(recalcSpacing()));
     recalcSpacing();
 
-//    std::cerr << "RegionLayer::setModel(" << model << ")" << std::endl;
+//    DEBUG << "RegionLayer::setModel(" << model << ")" << endl;
 
     emit modelReplaced();
 }
@@ -239,12 +239,12 @@
     m_distributionMap.clear();
     if (!m_model) return;
 
-//    std::cerr << "RegionLayer::recalcSpacing" << std::endl;
+//    DEBUG << "RegionLayer::recalcSpacing" << endl;
 
     for (RegionModel::PointList::const_iterator i = m_model->getPoints().begin();
          i != m_model->getPoints().end(); ++i) {
         m_distributionMap[i->value]++;
-//        std::cerr << "RegionLayer::recalcSpacing: value found: " << i->value << " (now have " << m_distributionMap[i->value] << " of this value)" <<  std::endl;
+//        DEBUG << "RegionLayer::recalcSpacing: value found: " << i->value << " (now have " << m_distributionMap[i->value] << " of this value)" <<  endl;
     }
 
     int n = 0;
@@ -252,7 +252,7 @@
     for (SpacingMap::const_iterator i = m_distributionMap.begin();
          i != m_distributionMap.end(); ++i) {
         m_spacingMap[i->first] = n++;
-//        std::cerr << "RegionLayer::recalcSpacing: " << i->first << " -> " << m_spacingMap[i->first] << std::endl;
+//        DEBUG << "RegionLayer::recalcSpacing: " << i->first << " -> " << m_spacingMap[i->first] << endl;
     }
 }
 
@@ -680,7 +680,7 @@
 
         int y = spacingIndexToY(v, i->second);
 
-//        std::cerr << "RegionLayer::getYForValue: value " << val << " -> i->second " << i->second << " -> y " << y << std::endl;
+//        DEBUG << "RegionLayer::getYForValue: value " << val << " -> i->second " << i->second << " -> y " << y << endl;
         return y;
 
 
@@ -811,8 +811,8 @@
         val = LogRange::map(val);
     }
 
-//    std::cerr << "RegionLayer::getColourForValue: min " << min << ", max "
-//              << max << ", log " << log << ", value " << val << std::endl;
+//    DEBUG << "RegionLayer::getColourForValue: min " << min << ", max "
+//              << max << ", log " << log << ", value " << val << endl;
 
     QColor solid = ColourMapper(m_colourMap, min, max).map(val);
     return QColor(solid.red(), solid.green(), solid.blue(), 120);
@@ -848,8 +848,8 @@
     QColor brushColour(getBaseQColor());
     brushColour.setAlpha(80);
 
-//    std::cerr << "RegionLayer::paint: resolution is "
-//	      << m_model->getResolution() << " frames" << std::endl;
+//    DEBUG << "RegionLayer::paint: resolution is "
+//	      << m_model->getResolution() << " frames" << endl;
 
     float min = m_model->getValueMinimum();
     float max = m_model->getValueMaximum();