Mercurial > hg > sonic-visualiser
diff document/SVFileReader.cpp @ 51:5f9fdca0c7d8
* Some dull work to continue unifying the fft model and editable dense 3d model
interfaces
author | Chris Cannam |
---|---|
date | Mon, 09 Oct 2006 10:49:46 +0000 |
parents | 56e1d4242bb4 |
children | ca1e3f5657d5 |
line wrap: on
line diff
--- a/document/SVFileReader.cpp Fri Oct 06 16:53:25 2006 +0000 +++ b/document/SVFileReader.cpp Mon Oct 09 10:49:46 2006 +0000 @@ -843,11 +843,11 @@ if (dtdm) { QStringList data = text.split(m_datasetSeparator); - DenseThreeDimensionalModel::BinValueSet values; + DenseThreeDimensionalModel::Column values; for (QStringList::iterator i = data.begin(); i != data.end(); ++i) { - if (values.size() == dtdm->getYBinCount()) { + if (values.size() == dtdm->getHeight()) { if (!warned) { std::cerr << "WARNING: SV-XML: Too many y-bins in 3-D dataset row " << m_rowNumber << std::endl; @@ -866,9 +866,7 @@ } } - size_t windowStartFrame = m_rowNumber * dtdm->getResolution(); - - dtdm->setBinValues(windowStartFrame, values); + dtdm->setColumn(m_rowNumber, values); return true; }