Mercurial > hg > svgui
diff layer/Colour3DPlotLayer.h @ 469:9863f9a36cc2
* some tweaks that make Colour3DPlotLayer a little bit faster for
very dense models
author | Chris Cannam |
---|---|
date | Fri, 23 Jan 2009 15:11:40 +0000 |
parents | 76a47146f1f6 |
children | 13e8edbffbd7 |
line wrap: on
line diff
--- a/layer/Colour3DPlotLayer.h Fri Jan 23 14:00:29 2009 +0000 +++ b/layer/Colour3DPlotLayer.h Fri Jan 23 15:11:40 2009 +0000 @@ -128,6 +128,7 @@ const DenseThreeDimensionalModel *m_model; // I do not own this mutable QImage *m_cache; + mutable QImage *m_peaksCache; mutable size_t m_cacheValidStart; mutable size_t m_cacheValidEnd; @@ -138,15 +139,16 @@ bool m_normalizeVisibleArea; bool m_invertVertical; bool m_opaque; + size_t m_peakResolution; int m_miny; int m_maxy; DenseThreeDimensionalModel::Column getColumn(size_t col) const; - virtual int getColourScaleWidth(QPainter &) const; - virtual void fillCache(size_t firstBin, size_t lastBin) const; - virtual void paintDense(View *v, QPainter &paint, QRect rect) const; + int getColourScaleWidth(QPainter &) const; + void fillCache(size_t firstBin, size_t lastBin) const; + void paintDense(View *v, QPainter &paint, QRect rect) const; }; #endif