Mercurial > hg > svgui
comparison layer/SpectrogramLayer.h @ 1092:9b826dd23c84 spectrogram-minor-refactor
Colour scales (partly)
author | Chris Cannam |
---|---|
date | Thu, 07 Jul 2016 12:39:56 +0100 |
parents | c8683d94442a |
children | cd22f74dc159 |
comparison
equal
deleted
inserted
replaced
1091:ac10a087e045 | 1092:9b826dd23c84 |
---|---|
26 #include "data/model/DenseTimeValueModel.h" | 26 #include "data/model/DenseTimeValueModel.h" |
27 #include "data/model/FFTModel.h" | 27 #include "data/model/FFTModel.h" |
28 | 28 |
29 #include "ScrollableImageCache.h" | 29 #include "ScrollableImageCache.h" |
30 #include "VerticalBinLayer.h" | 30 #include "VerticalBinLayer.h" |
31 #include "ColourScale.h" | |
31 | 32 |
32 #include <QMutex> | 33 #include <QMutex> |
33 #include <QWaitCondition> | 34 #include <QWaitCondition> |
34 #include <QImage> | 35 #include <QImage> |
35 #include <QPixmap> | 36 #include <QPixmap> |
135 int getMinFrequency() const; | 136 int getMinFrequency() const; |
136 | 137 |
137 void setMaxFrequency(int); // 0 -> no maximum | 138 void setMaxFrequency(int); // 0 -> no maximum |
138 int getMaxFrequency() const; | 139 int getMaxFrequency() const; |
139 | 140 |
140 enum ColourScale { | 141 /** |
141 LinearColourScale, | 142 * Specify the scale for sample levels. See ColourScale and |
142 MeterColourScale, | 143 * WaveformLayer for comparison and details of meter and dB |
143 dBSquaredColourScale, | 144 * scaling. The default is LogColourScale. |
144 dBColourScale, | 145 */ |
145 PhaseColourScale | 146 void setColourScale(ColourScale::Scale); |
146 }; | 147 ColourScale::Scale getColourScale() const; |
147 | |
148 /** | |
149 * Specify the scale for sample levels. See WaveformLayer for | |
150 * details of meter and dB scaling. The default is dBColourScale. | |
151 */ | |
152 void setColourScale(ColourScale); | |
153 ColourScale getColourScale() const; | |
154 | 148 |
155 enum FrequencyScale { | 149 enum FrequencyScale { |
156 LinearFrequencyScale, | 150 LinearFrequencyScale, |
157 LogFrequencyScale | 151 LogFrequencyScale |
158 }; | 152 }; |
259 int m_colourRotation; | 253 int m_colourRotation; |
260 int m_initialRotation; | 254 int m_initialRotation; |
261 int m_minFrequency; | 255 int m_minFrequency; |
262 int m_maxFrequency; | 256 int m_maxFrequency; |
263 int m_initialMaxFrequency; | 257 int m_initialMaxFrequency; |
264 ColourScale m_colourScale; | 258 ColourScale::Scale m_colourScale; |
265 int m_colourMap; | 259 int m_colourMap; |
266 QColor m_crosshairColour; | 260 QColor m_crosshairColour; |
267 FrequencyScale m_frequencyScale; | 261 FrequencyScale m_frequencyScale; |
268 BinDisplay m_binDisplay; | 262 BinDisplay m_binDisplay; |
269 ColumnOp::Normalization m_normalization; | 263 ColumnOp::Normalization m_normalization; |