Mercurial > hg > svgui
comparison layer/WaveformLayer.h @ 267:4ed1446ad604
* more on measurement tool -- pull out some logic from pane to layer &c
still more to do
author | Chris Cannam |
---|---|
date | Thu, 21 Jun 2007 16:12:00 +0000 |
parents | 11021509c4eb |
children | b9380f679f70 |
comparison
equal
deleted
inserted
replaced
266:aee39d8c0b83 | 267:4ed1446ad604 |
---|---|
177 virtual int getCompletion(View *) const; | 177 virtual int getCompletion(View *) const; |
178 | 178 |
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(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 | 184 |
185 virtual QString toXmlString(QString indent = "", | 185 virtual QString toXmlString(QString indent = "", |
186 QString extraAttributes = "") const; | 186 QString extraAttributes = "") const; |
187 | 187 |
198 | 198 |
199 /// Return value is number of channels displayed | 199 /// Return value is number of channels displayed |
200 size_t getChannelArrangement(size_t &min, size_t &max, | 200 size_t getChannelArrangement(size_t &min, size_t &max, |
201 bool &merging, bool &mixing) const; | 201 bool &merging, bool &mixing) const; |
202 | 202 |
203 int getYForValue(View *v, Scale scale, float value, size_t channel, | 203 int getYForValue(const View *v, Scale scale, float value, size_t channel, |
204 size_t minChannel, size_t maxChannel) const; | 204 size_t minChannel, size_t maxChannel) const; |
205 | 205 |
206 float getValueForY(View *v, Scale scale, int y, | 206 float getValueForY(const View *v, Scale scale, int y, |
207 size_t minChannel, size_t maxChannel) const; | 207 size_t minChannel, size_t maxChannel) const; |
208 | 208 |
209 float m_gain; | 209 float m_gain; |
210 bool m_autoNormalize; | 210 bool m_autoNormalize; |
211 QColor m_colour; | 211 QColor m_colour; |