Mercurial > hg > svcore
diff data/model/FFTModel.cpp @ 182:f75f8a1cd7b1
* 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 | 0ed2b2e26b44 |
children | 146eb9e35baa |
line wrap: on
line diff
--- a/data/model/FFTModel.cpp Fri Oct 06 16:53:25 2006 +0000 +++ b/data/model/FFTModel.cpp Mon Oct 09 10:49:46 2006 +0000 @@ -79,10 +79,8 @@ } void -FFTModel::getBinValues(long windowStartFrame, BinValueSet &result) const +FFTModel::getColumn(size_t x, Column &result) const { - if (windowStartFrame < 0) windowStartFrame = 0; - size_t x = windowStartFrame / getResolution(); result.clear(); size_t height(getHeight()); for (size_t y = 0; y < height; ++y) { @@ -90,14 +88,6 @@ } } -float -FFTModel::getBinValue(long windowStartFrame, size_t n) const -{ - if (windowStartFrame < 0) windowStartFrame = 0; - size_t x = windowStartFrame / getResolution(); - return const_cast<FFTModel *>(this)->getMagnitudeAt(x, n); -} - QString FFTModel::getBinName(size_t n) const {