comparison layer/LayerGeometryProvider.h @ 1082:5b4fe7bb9430 spectrogram-minor-refactor

VerticalBinLayer for vertical mapping abstraction. Not totally sure about this
author Chris Cannam
date Fri, 01 Jul 2016 09:55:48 +0100
parents ee01a4062747
children 179ea8a2f650
comparison
equal deleted inserted replaced
1081:cbc7c8675706 1082:5b4fe7bb9430
118 * if the frequency range is as specified. 118 * if the frequency range is as specified.
119 * 119 *
120 * Not thread-safe in logarithmic mode. Call only from GUI thread. 120 * Not thread-safe in logarithmic mode. Call only from GUI thread.
121 */ 121 */
122 virtual double getFrequencyForY(int y, double minFreq, double maxFreq, 122 virtual double getFrequencyForY(int y, double minFreq, double maxFreq,
123 bool logarithmic) const = 0; 123 bool logarithmic) const = 0;
124 124
125 virtual int getTextLabelHeight(const Layer *layer, QPainter &) const = 0; 125 virtual int getTextLabelHeight(const Layer *layer, QPainter &) const = 0;
126 126
127 virtual bool getValueExtents(QString unit, double &min, double &max, 127 virtual bool getValueExtents(QString unit, double &min, double &max,
128 bool &log) const = 0; 128 bool &log) const = 0;