comparison layer/SpectrogramLayer.h @ 979:98827470ada2 3.0-integration

Merge from branch normalize_hybrid_option
author Chris Cannam
date Fri, 26 Jun 2015 14:13:31 +0100
parents e39d5d2734ed 1986c9b0d9c3
children 4f4f0e158ecf
comparison
equal deleted inserted replaced
978:64c2b3a4435a 979:98827470ada2
86 virtual QString getPropertyGroupName(const PropertyName &) const; 86 virtual QString getPropertyGroupName(const PropertyName &) const;
87 virtual int getPropertyRangeAndValue(const PropertyName &, 87 virtual int getPropertyRangeAndValue(const PropertyName &,
88 int *min, int *max, int *deflt) const; 88 int *min, int *max, int *deflt) const;
89 virtual QString getPropertyValueLabel(const PropertyName &, 89 virtual QString getPropertyValueLabel(const PropertyName &,
90 int value) const; 90 int value) const;
91 virtual QString getPropertyValueIconName(const PropertyName &,
92 int value) const;
91 virtual RangeMapper *getNewPropertyRangeMapper(const PropertyName &) const; 93 virtual RangeMapper *getNewPropertyRangeMapper(const PropertyName &) const;
92 virtual void setProperty(const PropertyName &, int value); 94 virtual void setProperty(const PropertyName &, int value);
93 95
94 /** 96 /**
95 * Specify the channel to use from the source model. 97 * Specify the channel to use from the source model.
168 /** 170 /**
169 * Specify the processing of frequency bins for the y axis. 171 * Specify the processing of frequency bins for the y axis.
170 */ 172 */
171 void setBinDisplay(BinDisplay); 173 void setBinDisplay(BinDisplay);
172 BinDisplay getBinDisplay() const; 174 BinDisplay getBinDisplay() const;
173 175
174 /** 176 enum Normalization {
175 * Normalize each column to its maximum value, independent of its 177 NoNormalization,
176 * neighbours. 178 NormalizeColumns,
177 */ 179 NormalizeVisibleArea,
178 void setNormalizeColumns(bool n); 180 NormalizeHybrid
179 bool getNormalizeColumns() const; 181 };
180 182
181 /** 183 /**
182 * Normalize each value against the maximum in the visible region. 184 * Specify the normalization mode for bin values.
183 */ 185 */
184 void setNormalizeVisibleArea(bool n); 186 void setNormalization(Normalization);
185 bool getNormalizeVisibleArea() const; 187 Normalization getNormalization() const;
186 188
187 /** 189 /**
188 * Normalize each column to its maximum value, and then scale by 190 * Specify the colour map. See ColourMapper for the colour map
189 * the log of the (absolute) maximum value. 191 * values.
190 */ 192 */
191 void setNormalizeHybrid(bool n);
192 bool getNormalizeHybrid() const;
193
194 void setColourMap(int map); 193 void setColourMap(int map);
195 int getColourMap() const; 194 int getColourMap() const;
196 195
197 /** 196 /**
198 * Specify the colourmap rotation for the colour scale. 197 * Specify the colourmap rotation for the colour scale.
270 ColourScale m_colourScale; 269 ColourScale m_colourScale;
271 int m_colourMap; 270 int m_colourMap;
272 QColor m_crosshairColour; 271 QColor m_crosshairColour;
273 FrequencyScale m_frequencyScale; 272 FrequencyScale m_frequencyScale;
274 BinDisplay m_binDisplay; 273 BinDisplay m_binDisplay;
275 bool m_normalizeColumns; 274 Normalization m_normalization;
276 bool m_normalizeVisibleArea;
277 bool m_normalizeHybrid;
278 int m_lastEmittedZoomStep; 275 int m_lastEmittedZoomStep;
279 bool m_synchronous; 276 bool m_synchronous;
280 277
281 mutable bool m_haveDetailedScale; 278 mutable bool m_haveDetailedScale;
282 mutable int m_lastPaintBlockWidth; 279 mutable int m_lastPaintBlockWidth;