Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
283:86a112b5b319 | 284:1284955856ab |
---|---|
89 PlotStyle getPlotStyle() const { return m_plotStyle; } | 89 PlotStyle getPlotStyle() const { return m_plotStyle; } |
90 | 90 |
91 void setBinScale(BinScale scale); | 91 void setBinScale(BinScale scale); |
92 BinScale getBinScale() const { return m_binScale; } | 92 BinScale getBinScale() const { return m_binScale; } |
93 | 93 |
94 void setThreshold(float); | |
95 int getThreshold() const { return m_threshold; } | |
96 | |
94 void setGain(float gain); | 97 void setGain(float gain); |
95 float getGain() const; | 98 float getGain() const; |
96 | 99 |
97 void setNormalize(bool n); | 100 void setNormalize(bool n); |
98 bool getNormalize() const; | 101 bool getNormalize() const; |
120 // normalizing the fft results by the fft size (with 1/(fftsize/2) | 123 // normalizing the fft results by the fft size (with 1/(fftsize/2) |
121 // in each bin). | 124 // in each bin). |
122 typedef std::vector<float> BiasCurve; | 125 typedef std::vector<float> BiasCurve; |
123 virtual void getBiasCurve(BiasCurve &) const { return; } | 126 virtual void getBiasCurve(BiasCurve &) const { return; } |
124 | 127 |
128 virtual float getThresholdDb() const; | |
129 | |
125 const DenseThreeDimensionalModel *m_sliceableModel; | 130 const DenseThreeDimensionalModel *m_sliceableModel; |
126 QColor m_colour; | 131 QColor m_colour; |
127 int m_colourMap; | 132 int m_colourMap; |
128 EnergyScale m_energyScale; | 133 EnergyScale m_energyScale; |
129 SamplingMode m_samplingMode; | 134 SamplingMode m_samplingMode; |
130 PlotStyle m_plotStyle; | 135 PlotStyle m_plotStyle; |
131 BinScale m_binScale; | 136 BinScale m_binScale; |
132 bool m_normalize; | 137 bool m_normalize; |
138 float m_threshold; | |
139 float m_initialThreshold; | |
133 float m_gain; | 140 float m_gain; |
134 mutable std::vector<int> m_scalePoints; | 141 mutable std::vector<int> m_scalePoints; |
135 mutable std::map<const View *, int> m_xorigins; | 142 mutable std::map<const View *, int> m_xorigins; |
136 mutable std::map<const View *, int> m_yorigins; | 143 mutable std::map<const View *, int> m_yorigins; |
137 mutable std::map<const View *, int> m_heights; | 144 mutable std::map<const View *, int> m_heights; |