comparison layer/Colour3DPlotLayer.h @ 1113:261a00010918 spectrogram-minor-refactor

Consts and willRenderOpaque
author Chris Cannam
date Tue, 19 Jul 2016 14:49:46 +0100
parents 67dd16e33a3d
children a42e5a3c63ef
comparison
equal deleted inserted replaced
1112:d578b685d912 1113:261a00010918
185 const int m_peakCacheDivisor; 185 const int m_peakCacheDivisor;
186 Dense3DModelPeakCache *getPeakCache() const; 186 Dense3DModelPeakCache *getPeakCache() const;
187 187
188 typedef std::map<int, Colour3DPlotRenderer *> ViewRendererMap; // key is view id 188 typedef std::map<int, Colour3DPlotRenderer *> ViewRendererMap; // key is view id
189 mutable ViewRendererMap m_renderers; 189 mutable ViewRendererMap m_renderers;
190 Colour3DPlotRenderer *getRenderer(LayerGeometryProvider *) const; 190 Colour3DPlotRenderer *getRenderer(const LayerGeometryProvider *) const;
191 void invalidateRenderers(); 191 void invalidateRenderers();
192 192
193 /** 193 /**
194 * Return the y coordinate at which the given bin "starts" 194 * Return the y coordinate at which the given bin "starts"
195 * (i.e. at the bottom of the bin, if the given bin is an integer 195 * (i.e. at the bottom of the bin, if the given bin is an integer
196 * and the vertical scale is the usual way up). Bin number may be 196 * and the vertical scale is the usual way up). Bin number may be
197 * fractional, to obtain a position part-way through a bin. 197 * fractional, to obtain a position part-way through a bin.
198 */ 198 */
199 double getYForBin(LayerGeometryProvider *, double bin) const; 199 double getYForBin(const LayerGeometryProvider *, double bin) const;
200 200
201 /** 201 /**
202 * Return the bin number, possibly fractional, at the given y 202 * Return the bin number, possibly fractional, at the given y
203 * coordinate. Note that the whole numbers occur at the positions 203 * coordinate. Note that the whole numbers occur at the positions
204 * at which the bins "start" (i.e. the bottom of the visible bin, 204 * at which the bins "start" (i.e. the bottom of the visible bin,
205 * if the vertical scale is the usual way up). 205 * if the vertical scale is the usual way up).
206 */ 206 */
207 double getBinForY(LayerGeometryProvider *, double y) const; 207 double getBinForY(const LayerGeometryProvider *, double y) const;
208 208
209 DenseThreeDimensionalModel::Column getColumn(int col) const; 209 DenseThreeDimensionalModel::Column getColumn(int col) const;
210 210
211 /** 211 /**
212 * True if we have the opaque or smooth flag set, or if the cells 212 * True if we have the opaque or smooth flag set, or if the cells