Mercurial > hg > svcore
changeset 296:2b6c99b607f1
...
author | Chris Cannam |
---|---|
date | Fri, 21 Sep 2007 09:13:11 +0000 |
parents | a2dc34ce146a |
children | c022976d18e8 |
files | data/model/SparseModel.h data/model/SparseValueModel.h |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/data/model/SparseModel.h Thu Sep 06 15:14:47 2007 +0000 +++ b/data/model/SparseModel.h Fri Sep 21 09:13:11 2007 +0000 @@ -450,9 +450,6 @@ void SparseModel<PointType>::addPoint(const PointType &point) { -// std::cout << "SparseModel<Point>::addPoint(" << point.frame << ", " -// << point.value << ")" << std::endl; - { QMutexLocker locker(&m_mutex); m_points.insert(point);
--- a/data/model/SparseValueModel.h Thu Sep 06 15:14:47 2007 +0000 +++ b/data/model/SparseValueModel.h Fri Sep 21 09:13:11 2007 +0000 @@ -67,9 +67,11 @@ if (!std::isnan(point.value) && !std::isinf(point.value)) { if (!m_haveExtents || point.value < m_valueMinimum) { m_valueMinimum = point.value; allChange = true; +// std::cerr << "addPoint: value min = " << m_valueMinimum << std::endl; } if (!m_haveExtents || point.value > m_valueMaximum) { m_valueMaximum = point.value; allChange = true; +// std::cerr << "addPoint: value max = " << m_valueMaximum << " (min = " << m_valueMinimum << ")" << std::endl; } m_haveExtents = true; } @@ -93,9 +95,11 @@ if (i == m_points.begin() || i->value < m_valueMinimum) { m_valueMinimum = i->value; +// std::cerr << "deletePoint: value min = " << m_valueMinimum << std::endl; } if (i == m_points.begin() || i->value > m_valueMaximum) { m_valueMaximum = i->value; +// std::cerr << "deletePoint: value max = " << m_valueMaximum << std::endl; } }