diff layer/SliceLayer.h @ 284:1284955856ab

* threshold, show-peaks properties in spectrum
author Chris Cannam
date Fri, 06 Jul 2007 15:17:35 +0000
parents b9380f679f70
children cd2492c5fe45
line wrap: on
line diff
--- a/layer/SliceLayer.h	Thu Jul 05 15:36:37 2007 +0000
+++ b/layer/SliceLayer.h	Fri Jul 06 15:17:35 2007 +0000
@@ -91,6 +91,9 @@
     void setBinScale(BinScale scale);
     BinScale getBinScale() const { return m_binScale; }
 
+    void setThreshold(float);
+    int getThreshold() const { return m_threshold; }
+
     void setGain(float gain);
     float getGain() const;
 
@@ -122,6 +125,8 @@
     typedef std::vector<float> BiasCurve;
     virtual void getBiasCurve(BiasCurve &) const { return; }
 
+    virtual float getThresholdDb() const;
+
     const DenseThreeDimensionalModel *m_sliceableModel;
     QColor                            m_colour;
     int                               m_colourMap;
@@ -130,6 +135,8 @@
     PlotStyle                         m_plotStyle;
     BinScale                          m_binScale;
     bool                              m_normalize;
+    float                             m_threshold;
+    float                             m_initialThreshold;
     float                             m_gain;
     mutable std::vector<int>          m_scalePoints;
     mutable std::map<const View *, int> m_xorigins;