# HG changeset patch # User Chris Cannam # Date 1147096276 0 # Node ID 0c19e50bad7c35070e2a1939c19dd16505a7aab8 # Parent f258fd1f74b4826e6ff9603652cd0f8b6a4e6c79 * add a column bitmap to the matrix file object to record which columns are available (optimisation for refreshing during fft creation) diff -r f258fd1f74b4 -r 0c19e50bad7c base/FFTCache.h --- a/base/FFTCache.h Fri May 05 16:38:18 2006 +0000 +++ b/base/FFTCache.h Mon May 08 13:51:16 2006 +0000 @@ -36,11 +36,7 @@ virtual float getNormalizedMagnitudeAt(size_t x, size_t y) const = 0; virtual float getPhaseAt(size_t x, size_t y) const = 0; - virtual void setNormalizationFactor(size_t x, float factor) = 0; - virtual void setMagnitudeAt(size_t x, size_t y, float mag) = 0; - virtual void setNormalizedMagnitudeAt(size_t x, size_t y, float norm) = 0; - virtual void setPhaseAt(size_t x, size_t y, float phase) = 0; - + virtual bool haveColumnAt(size_t x) const = 0; virtual void setColumnAt(size_t x, float *mags, float *phases, float factor) = 0; bool isLocalPeak(size_t x, size_t y) const { @@ -124,6 +120,10 @@ } } + virtual bool haveColumnAt(size_t x) const { + return true; + } + virtual void setColumnAt(size_t x, float *mags, float *phases, float factor) { setNormalizationFactor(x, factor); for (size_t y = 0; y < m_height; ++y) { diff -r f258fd1f74b4 -r 0c19e50bad7c base/View.cpp --- a/base/View.cpp Fri May 05 16:38:18 2006 +0000 +++ b/base/View.cpp Mon May 08 13:51:16 2006 +0000 @@ -31,7 +31,7 @@ #include #include -//#define DEBUG_VIEW_WIDGET_PAINT 1 +#define DEBUG_VIEW_WIDGET_PAINT 1 using std::cerr; using std::endl;