changeset 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 bd1260261412
children f75f8a1cd7b1
files data/model/EditableDenseThreeDimensionalModel.cpp
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
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];
     }