comparison layer/WaveformLayer.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 9dd432665059
comparison
equal deleted inserted replaced
273:e954c00cbe55 274:b9380f679f70
179 virtual bool getValueExtents(float &min, float &max, 179 virtual bool getValueExtents(float &min, float &max,
180 bool &log, QString &unit) const; 180 bool &log, QString &unit) const;
181 181
182 virtual bool getYScaleValue(const View *v, int y, 182 virtual bool getYScaleValue(const View *v, int y,
183 float &value, QString &unit) const; 183 float &value, QString &unit) const;
184
185 virtual bool getYScaleDifference(const View *v, int y0, int y1,
186 float &diff, QString &unit) const;
184 187
185 virtual QString toXmlString(QString indent = "", 188 virtual QString toXmlString(QString indent = "",
186 QString extraAttributes = "") const; 189 QString extraAttributes = "") const;
187 190
188 void setProperties(const QXmlAttributes &attributes); 191 void setProperties(const QXmlAttributes &attributes);
198 201
199 /// Return value is number of channels displayed 202 /// Return value is number of channels displayed
200 size_t getChannelArrangement(size_t &min, size_t &max, 203 size_t getChannelArrangement(size_t &min, size_t &max,
201 bool &merging, bool &mixing) const; 204 bool &merging, bool &mixing) const;
202 205
203 int getYForValue(const View *v, Scale scale, float value, size_t channel, 206 int getYForValue(const View *v, float value, size_t channel) const;
204 size_t minChannel, size_t maxChannel) const; 207
205 208 float getValueForY(const View *v, int y, size_t &channel) const;
206 float getValueForY(const View *v, Scale scale, int y,
207 size_t minChannel, size_t maxChannel) const;
208 209
209 float m_gain; 210 float m_gain;
210 bool m_autoNormalize; 211 bool m_autoNormalize;
211 QColor m_colour; 212 QColor m_colour;
212 bool m_showMeans; 213 bool m_showMeans;