Mercurial > hg > svgui
comparison layer/VerticalBinLayer.h @ 1110:67dd16e33a3d spectrogram-minor-refactor
Make VerticalBinLayer an actual Layer (via SliceableLayer)
author | Chris Cannam |
---|---|
date | Tue, 19 Jul 2016 08:55:13 +0100 |
parents | 179ea8a2f650 |
children | 953ce409ccfb |
comparison
equal
deleted
inserted
replaced
1109:477521f95a84 | 1110:67dd16e33a3d |
---|---|
14 */ | 14 */ |
15 | 15 |
16 #ifndef VERTICAL_BIN_LAYER_H | 16 #ifndef VERTICAL_BIN_LAYER_H |
17 #define VERTICAL_BIN_LAYER_H | 17 #define VERTICAL_BIN_LAYER_H |
18 | 18 |
19 #include "SliceableLayer.h" | |
20 | |
19 /** | 21 /** |
20 * Interface for layers in which the Y axis corresponds to bin number | 22 * Interface for layers in which the Y axis corresponds to bin number |
21 * rather than scale value. Colour3DPlotLayer is the obvious example. | 23 * rather than scale value. Colour3DPlotLayer is the obvious example. |
22 *!!! should just be a mapper interface, not a layer one? | 24 *!!! should just be a mapper interface, not a layer one? |
23 *!!! or even an application of RangeMapper | 25 *!!! or even an application of RangeMapper |
24 */ | 26 */ |
25 class VerticalBinLayer | 27 class VerticalBinLayer : public SliceableLayer |
26 { | 28 { |
27 public: | 29 public: |
28 /** | 30 /** |
29 * Return the y coordinate at which the given bin "starts" | 31 * Return the y coordinate at which the given bin "starts" |
30 * (i.e. at the bottom of the bin, if the given bin is an integer | 32 * (i.e. at the bottom of the bin, if the given bin is an integer |