Mercurial > hg > svgui
diff 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 |
line wrap: on
line diff
--- a/layer/Colour3DPlotLayer.h Wed Jul 13 10:00:21 2016 +0100 +++ b/layer/Colour3DPlotLayer.h Wed Jul 13 13:06:28 2016 +0100 @@ -171,7 +171,15 @@ // always snap to whole bins at view edges. int m_miny; int m_maxy; - + + mutable Dense3DModelPeakCache *m_peakCache; + const int m_peakCacheDivisor; + Dense3DModelPeakCache *getPeakCache() const; + + typedef std::map<int, Colour3DPlotRenderer *> ViewRendererMap; // key is view id + mutable ViewRendererMap m_renderers; + Colour3DPlotRenderer *getRenderer(LayerGeometryProvider *) const; + /** * Return the y coordinate at which the given bin "starts" * (i.e. at the bottom of the bin, if the given bin is an integer