comparison layer/SliceLayer.h @ 274:b9380f679f70

* Fix centre line position * Fix failure to update overview when generating peaks from wav file * Provide y-coordinate scale values and differences for spectrum measurement mode, and fix values for waveform (inc dB for both) * Add Printer colour scheme (may be futile)
author Chris Cannam
date Mon, 02 Jul 2007 13:04:17 +0000
parents 4ed1446ad604
children 1284955856ab
comparison
equal deleted inserted replaced
273:e954c00cbe55 274:b9380f679f70
105 void modelAboutToBeDeleted(Model *); 105 void modelAboutToBeDeleted(Model *);
106 106
107 protected: 107 protected:
108 virtual float getXForBin(int bin, int totalBins, float w) const; 108 virtual float getXForBin(int bin, int totalBins, float w) const;
109 virtual int getBinForX(float x, int totalBins, float w) const; 109 virtual int getBinForX(float x, int totalBins, float w) const;
110
111 virtual float getYForValue(float value, const View *v, float &norm) const;
112 virtual float getValueForY(float y, const View *v) const;
110 113
111 virtual QString getFeatureDescription(View *v, QPoint &, 114 virtual QString getFeatureDescription(View *v, QPoint &,
112 bool includeBinDescription, 115 bool includeBinDescription,
113 int &minbin, int &maxbin, 116 int &minbin, int &maxbin,
114 int &range) const; 117 int &range) const;
128 BinScale m_binScale; 131 BinScale m_binScale;
129 bool m_normalize; 132 bool m_normalize;
130 float m_gain; 133 float m_gain;
131 mutable std::vector<int> m_scalePoints; 134 mutable std::vector<int> m_scalePoints;
132 mutable std::map<const View *, int> m_xorigins; 135 mutable std::map<const View *, int> m_xorigins;
136 mutable std::map<const View *, int> m_yorigins;
137 mutable std::map<const View *, int> m_heights;
133 mutable size_t m_currentf0; 138 mutable size_t m_currentf0;
134 mutable size_t m_currentf1; 139 mutable size_t m_currentf1;
135 mutable std::vector<float> m_values; 140 mutable std::vector<float> m_values;
136 }; 141 };
137 142