changeset 108:0c19e50bad7c

* add a column bitmap to the matrix file object to record which columns are available (optimisation for refreshing during fft creation)
author Chris Cannam
date Mon, 08 May 2006 13:51:16 +0000 (2006-05-08)
parents f258fd1f74b4
children 61a2ac1241b3
files base/FFTCache.h base/View.cpp
diffstat 2 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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) {
--- 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 <cassert>
 #include <math.h>
 
-//#define DEBUG_VIEW_WIDGET_PAINT 1
+#define DEBUG_VIEW_WIDGET_PAINT 1
 
 using std::cerr;
 using std::endl;