comparison layer/Colour3DPlotLayer.h @ 1100:102f986ec032 spectrogram-minor-refactor

Create, but don't yet use, a renderer in the colour 3d plot layer
author Chris Cannam
date Wed, 13 Jul 2016 13:06:28 +0100
parents 5c6271734790
children 1364cbf4453d
comparison
equal deleted inserted replaced
1099:5c6271734790 1100:102f986ec032
169 169
170 // Minimum and maximum bin numbers visible within the view. We 170 // Minimum and maximum bin numbers visible within the view. We
171 // always snap to whole bins at view edges. 171 // always snap to whole bins at view edges.
172 int m_miny; 172 int m_miny;
173 int m_maxy; 173 int m_maxy;
174 174
175 mutable Dense3DModelPeakCache *m_peakCache;
176 const int m_peakCacheDivisor;
177 Dense3DModelPeakCache *getPeakCache() const;
178
179 typedef std::map<int, Colour3DPlotRenderer *> ViewRendererMap; // key is view id
180 mutable ViewRendererMap m_renderers;
181 Colour3DPlotRenderer *getRenderer(LayerGeometryProvider *) const;
182
175 /** 183 /**
176 * Return the y coordinate at which the given bin "starts" 184 * Return the y coordinate at which the given bin "starts"
177 * (i.e. at the bottom of the bin, if the given bin is an integer 185 * (i.e. at the bottom of the bin, if the given bin is an integer
178 * and the vertical scale is the usual way up). Bin number may be 186 * and the vertical scale is the usual way up). Bin number may be
179 * fractional, to obtain a position part-way through a bin. 187 * fractional, to obtain a position part-way through a bin.