Mercurial > hg > svgui
comparison layer/Colour3DPlotLayer.h @ 1097:92ac1fce7102 spectrogram-minor-refactor
Introduce peak frequency rendering (basics of)
author | Chris Cannam |
---|---|
date | Mon, 11 Jul 2016 16:03:39 +0100 |
parents | 179ea8a2f650 |
children | 5c6271734790 |
comparison
equal
deleted
inserted
replaced
1096:6288f1b5f49b | 1097:92ac1fce7102 |
---|---|
16 #ifndef COLOUR_3D_PLOT_LAYER_H | 16 #ifndef COLOUR_3D_PLOT_LAYER_H |
17 #define COLOUR_3D_PLOT_LAYER_H | 17 #define COLOUR_3D_PLOT_LAYER_H |
18 | 18 |
19 #include "SliceableLayer.h" | 19 #include "SliceableLayer.h" |
20 #include "VerticalBinLayer.h" | 20 #include "VerticalBinLayer.h" |
21 | |
22 #include "ColourScale.h" | |
23 #include "Colour3DPlotRenderer.h" | |
21 | 24 |
22 #include "data/model/DenseThreeDimensionalModel.h" | 25 #include "data/model/DenseThreeDimensionalModel.h" |
23 | 26 |
24 class View; | 27 class View; |
25 class QPainter; | 28 class QPainter; |
192 | 195 |
193 // Minimum and maximum bin numbers visible within the view. We | 196 // Minimum and maximum bin numbers visible within the view. We |
194 // always snap to whole bins at view edges. | 197 // always snap to whole bins at view edges. |
195 int m_miny; | 198 int m_miny; |
196 int m_maxy; | 199 int m_maxy; |
197 | 200 |
198 /** | 201 /** |
199 * Return the y coordinate at which the given bin "starts" | 202 * Return the y coordinate at which the given bin "starts" |
200 * (i.e. at the bottom of the bin, if the given bin is an integer | 203 * (i.e. at the bottom of the bin, if the given bin is an integer |
201 * and the vertical scale is the usual way up). Bin number may be | 204 * and the vertical scale is the usual way up). Bin number may be |
202 * fractional, to obtain a position part-way through a bin. | 205 * fractional, to obtain a position part-way through a bin. |