comparison layer/SliceLayer.h @ 254:a2ae3d93c645

* bit of work on harmonic cursor in spectrum
author Chris Cannam
date Mon, 11 Jun 2007 12:14:52 +0000
parents 28c8e8e3c537
children a3a54632cd4c
comparison
equal deleted inserted replaced
253:1b1e6947c124 254:a2ae3d93c645
111 virtual QString getFeatureDescription(View *v, QPoint &, 111 virtual QString getFeatureDescription(View *v, QPoint &,
112 bool includeBinDescription, 112 bool includeBinDescription,
113 int &minbin, int &maxbin, 113 int &minbin, int &maxbin,
114 int &range) const; 114 int &range) const;
115 115
116 // This curve may, of course, be flat -- the spectrum uses it for
117 // normalizing the fft results by the fft size (with 1/(fftsize/2)
118 // in each bin).
119 typedef std::vector<float> BiasCurve;
120 virtual void getBiasCurve(BiasCurve &) const { return; }
121
116 const DenseThreeDimensionalModel *m_sliceableModel; 122 const DenseThreeDimensionalModel *m_sliceableModel;
117 QColor m_colour; 123 QColor m_colour;
118 int m_colourMap; 124 int m_colourMap;
119 EnergyScale m_energyScale; 125 EnergyScale m_energyScale;
120 SamplingMode m_samplingMode; 126 SamplingMode m_samplingMode;
121 PlotStyle m_plotStyle; 127 PlotStyle m_plotStyle;
122 BinScale m_binScale; 128 BinScale m_binScale;
123 bool m_normalize; 129 bool m_normalize;
124 bool m_bias;
125 float m_gain; 130 float m_gain;
126 mutable std::vector<int> m_scalePoints; 131 mutable std::vector<int> m_scalePoints;
127 mutable std::map<View *, int> m_xorigins; 132 mutable std::map<View *, int> m_xorigins;
128 mutable size_t m_currentf0; 133 mutable size_t m_currentf0;
129 mutable size_t m_currentf1; 134 mutable size_t m_currentf1;