comparison layer/Colour3DPlotLayer.h @ 1085:179ea8a2f650 spectrogram-minor-refactor

Add VerticalBinLayer to SpectrogramLayer
author Chris Cannam
date Fri, 01 Jul 2016 17:54:31 +0100
parents 5b4fe7bb9430
children 92ac1fce7102
comparison
equal deleted inserted replaced
1084:db976e9f385a 1085:179ea8a2f650
200 * (i.e. at the bottom of the bin, if the given bin is an integer 200 * (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 201 * and the vertical scale is the usual way up). Bin number may be
202 * fractional, to obtain a position part-way through a bin. 202 * fractional, to obtain a position part-way through a bin.
203 */ 203 */
204 double getYForBin(LayerGeometryProvider *, double bin) const; 204 double getYForBin(LayerGeometryProvider *, double bin) const;
205
206 /**
207 * As getYForBin, but rounding to integer values.
208 */
209 int getIYForBin(LayerGeometryProvider *, int bin) const;
210 205
211 /** 206 /**
212 * Return the bin number, possibly fractional, at the given y 207 * Return the bin number, possibly fractional, at the given y
213 * coordinate. Note that the whole numbers occur at the positions 208 * coordinate. Note that the whole numbers occur at the positions
214 * at which the bins "start" (i.e. the bottom of the visible bin, 209 * at which the bins "start" (i.e. the bottom of the visible bin,
215 * if the vertical scale is the usual way up). 210 * if the vertical scale is the usual way up).
216 */ 211 */
217 double getBinForY(LayerGeometryProvider *, double y) const; 212 double getBinForY(LayerGeometryProvider *, double y) const;
218
219 /**
220 * As getBinForY, but rounding to integer values.
221 */
222 int getIBinForY(LayerGeometryProvider *, int y) const;
223 213
224 DenseThreeDimensionalModel::Column getColumn(int col) const; 214 DenseThreeDimensionalModel::Column getColumn(int col) const;
225 215
226 /** 216 /**
227 * True if we have the opaque or smooth flag set, or if the cells 217 * True if we have the opaque or smooth flag set, or if the cells