Mercurial > hg > svgui
diff layer/Colour3DPlotLayer.h @ 461:272e58f0bf8b sv-v1.4 sv-v1.4rc1
* Knock a bit of sense into Colour3DPlotLayer's cache management
author | Chris Cannam |
---|---|
date | Mon, 08 Dec 2008 13:06:44 +0000 |
parents | e5800f4490c4 |
children | b77b79413cdb |
line wrap: on
line diff
--- a/layer/Colour3DPlotLayer.h Mon Dec 08 11:53:10 2008 +0000 +++ b/layer/Colour3DPlotLayer.h Mon Dec 08 13:06:44 2008 +0000 @@ -118,14 +118,18 @@ protected slots: void cacheInvalid(); void cacheInvalid(size_t startFrame, size_t endFrame); + void modelChanged(); + void modelChanged(size_t, size_t); protected: const DenseThreeDimensionalModel *m_model; // I do not own this mutable QImage *m_cache; - mutable size_t m_cacheStart; + mutable size_t m_cacheValidStart; + mutable size_t m_cacheValidEnd; ColourScale m_colourScale; + bool m_colourScaleSet; int m_colourMap; bool m_normalizeColumns; bool m_normalizeVisibleArea;