Mercurial > hg > svcore
diff data/model/EditableDenseThreeDimensionalModel.cpp @ 181:9c652f2c39b1
* Various improvements to colour 3d plot layer, particularly for large and/or
dense plots. Still a work in progress
author | Chris Cannam |
---|---|
date | Fri, 06 Oct 2006 16:53:25 +0000 |
parents | 21792a550ec9 |
children | f75f8a1cd7b1 |
line wrap: on
line diff
--- a/data/model/EditableDenseThreeDimensionalModel.cpp Thu Oct 05 15:39:23 2006 +0000 +++ b/data/model/EditableDenseThreeDimensionalModel.cpp Fri Oct 06 16:53:25 2006 +0000 @@ -17,6 +17,8 @@ #include <QTextStream> +#include <iostream> + EditableDenseThreeDimensionalModel::EditableDenseThreeDimensionalModel(size_t sampleRate, size_t resolution, size_t yBinCount, @@ -124,7 +126,7 @@ void EditableDenseThreeDimensionalModel::getBinValues(long windowStart, - BinValueSet &result) const + BinValueSet &result) const { QMutexLocker locker(&m_mutex); @@ -141,7 +143,7 @@ float EditableDenseThreeDimensionalModel::getBinValue(long windowStart, - size_t n) const + size_t n) const { QMutexLocker locker(&m_mutex); @@ -149,6 +151,8 @@ if (index >= 0 && index < long(m_data.size())) { const BinValueSet &s = m_data[index]; + std::cerr << "index " << index << ", n " << n << ", res " << m_resolution << ", size " << s.size() + << std::endl; if (n < s.size()) return s[n]; }