comparison layer/SpectrogramLayer.h @ 743:a352fb986e7b tony_integration

Merge from branch tonioni
author Chris Cannam
date Tue, 11 Mar 2014 17:33:19 +0000
parents 67e6d518ac27
children 1d526ba11a24
comparison
equal deleted inserted replaced
718:e5f4385615ac 743:a352fb986e7b
168 /** 168 /**
169 * Specify the processing of frequency bins for the y axis. 169 * Specify the processing of frequency bins for the y axis.
170 */ 170 */
171 void setBinDisplay(BinDisplay); 171 void setBinDisplay(BinDisplay);
172 BinDisplay getBinDisplay() const; 172 BinDisplay getBinDisplay() const;
173 173
174 /**
175 * Normalize each column to its maximum value, independent of its
176 * neighbours.
177 */
174 void setNormalizeColumns(bool n); 178 void setNormalizeColumns(bool n);
175 bool getNormalizeColumns() const; 179 bool getNormalizeColumns() const;
176 180
181 /**
182 * Normalize each value against the maximum in the visible region.
183 */
177 void setNormalizeVisibleArea(bool n); 184 void setNormalizeVisibleArea(bool n);
178 bool getNormalizeVisibleArea() const; 185 bool getNormalizeVisibleArea() const;
179 186
187 /**
188 * Normalize each column to its maximum value, and then scale by
189 * the log of the (absolute) maximum value.
190 */
191 void setNormalizeHybrid(bool n);
192 bool getNormalizeHybrid() const;
193
180 void setColourMap(int map); 194 void setColourMap(int map);
181 int getColourMap() const; 195 int getColourMap() const;
182 196
183 /** 197 /**
184 * Specify the colourmap rotation for the colour scale. 198 * Specify the colourmap rotation for the colour scale.
258 QColor m_crosshairColour; 272 QColor m_crosshairColour;
259 FrequencyScale m_frequencyScale; 273 FrequencyScale m_frequencyScale;
260 BinDisplay m_binDisplay; 274 BinDisplay m_binDisplay;
261 bool m_normalizeColumns; 275 bool m_normalizeColumns;
262 bool m_normalizeVisibleArea; 276 bool m_normalizeVisibleArea;
277 bool m_normalizeHybrid;
263 int m_lastEmittedZoomStep; 278 int m_lastEmittedZoomStep;
264 bool m_synchronous; 279 bool m_synchronous;
265 280
266 mutable bool m_haveDetailedScale; 281 mutable bool m_haveDetailedScale;
267 mutable int m_lastPaintBlockWidth; 282 mutable int m_lastPaintBlockWidth;
318 333
319 void initialisePalette(); 334 void initialisePalette();
320 void rotatePalette(int distance); 335 void rotatePalette(int distance);
321 336
322 unsigned char getDisplayValue(View *v, float input) const; 337 unsigned char getDisplayValue(View *v, float input) const;
323 float getInputForDisplayValue(unsigned char uc) const;
324 338
325 int getColourScaleWidth(QPainter &) const; 339 int getColourScaleWidth(QPainter &) const;
326 340
327 void illuminateLocalFeatures(View *v, QPainter &painter) const; 341 void illuminateLocalFeatures(View *v, QPainter &painter) const;
328 342