Mercurial > hg > svgui
comparison layer/SpectrogramLayer.h @ 120:8dfa20f1c70a
* some work on scaling and zooming for spectrogram
author | Chris Cannam |
---|---|
date | Wed, 19 Jul 2006 16:55:29 +0000 |
parents | 508276c923ba |
children | 7363cacf7de0 |
comparison
equal
deleted
inserted
replaced
119:508276c923ba | 120:8dfa20f1c70a |
---|---|
164 BinDisplay getBinDisplay() const; | 164 BinDisplay getBinDisplay() const; |
165 | 165 |
166 void setNormalizeColumns(bool n); | 166 void setNormalizeColumns(bool n); |
167 bool getNormalizeColumns() const; | 167 bool getNormalizeColumns() const; |
168 | 168 |
169 void setNormalizeVisibleArea(bool n); | |
170 bool getNormalizeVisibleArea() const; | |
171 | |
169 enum ColourScheme { DefaultColours, WhiteOnBlack, BlackOnWhite, | 172 enum ColourScheme { DefaultColours, WhiteOnBlack, BlackOnWhite, |
170 RedOnBlue, YellowOnBlack, BlueOnBlack, Rainbow }; | 173 RedOnBlue, YellowOnBlack, BlueOnBlack, Rainbow }; |
171 | 174 |
172 void setColourScheme(ColourScheme scheme); | 175 void setColourScheme(ColourScheme scheme); |
173 ColourScheme getColourScheme() const; | 176 ColourScheme getColourScheme() const; |
191 | 194 |
192 virtual bool getValueExtents(float &min, float &max, | 195 virtual bool getValueExtents(float &min, float &max, |
193 bool &logarithmic, QString &unit) const; | 196 bool &logarithmic, QString &unit) const; |
194 | 197 |
195 virtual bool getDisplayExtents(float &min, float &max) const; | 198 virtual bool getDisplayExtents(float &min, float &max) const; |
199 | |
200 virtual bool setDisplayExtents(float min, float max); | |
196 | 201 |
197 virtual QString toXmlString(QString indent = "", | 202 virtual QString toXmlString(QString indent = "", |
198 QString extraAttributes = "") const; | 203 QString extraAttributes = "") const; |
199 | 204 |
200 void setProperties(const QXmlAttributes &attributes); | 205 void setProperties(const QXmlAttributes &attributes); |
227 ColourScheme m_colourScheme; | 232 ColourScheme m_colourScheme; |
228 QColor m_crosshairColour; | 233 QColor m_crosshairColour; |
229 FrequencyScale m_frequencyScale; | 234 FrequencyScale m_frequencyScale; |
230 BinDisplay m_binDisplay; | 235 BinDisplay m_binDisplay; |
231 bool m_normalizeColumns; | 236 bool m_normalizeColumns; |
237 bool m_normalizeVisibleArea; | |
232 | 238 |
233 enum { NO_VALUE = 0 }; // colour index for unused pixels | 239 enum { NO_VALUE = 0 }; // colour index for unused pixels |
234 | 240 |
235 class ColourMap | 241 class ColourMap |
236 { | 242 { |