Mercurial > hg > svgui
diff layer/Colour3DPlotLayer.h @ 1101:1364cbf4453d spectrogram-minor-refactor
Begin using renderer in colour 3d plot layer
author | Chris Cannam |
---|---|
date | Wed, 13 Jul 2016 13:30:39 +0100 |
parents | 102f986ec032 |
children | d84a0033b305 |
line wrap: on
line diff
--- a/layer/Colour3DPlotLayer.h Wed Jul 13 13:06:28 2016 +0100 +++ b/layer/Colour3DPlotLayer.h Wed Jul 13 13:30:39 2016 +0100 @@ -52,6 +52,7 @@ } virtual const Model *getModel() const { return m_model; } virtual void paint(LayerGeometryProvider *v, QPainter &paint, QRect rect) const; + virtual void setSynchronousPainting(bool synchronous); virtual int getVerticalScaleWidth(LayerGeometryProvider *v, bool, QPainter &) const; virtual void paintVerticalScale(LayerGeometryProvider *v, bool, QPainter &paint, QRect rect) const; @@ -172,6 +173,8 @@ int m_miny; int m_maxy; + bool m_synchronous; + mutable Dense3DModelPeakCache *m_peakCache; const int m_peakCacheDivisor; Dense3DModelPeakCache *getPeakCache() const; @@ -208,6 +211,9 @@ int getColourScaleWidth(QPainter &) const; void fillCache(int firstBin, int lastBin) const; void paintDense(LayerGeometryProvider *v, QPainter &paint, QRect rect) const; + + void paintAlternative(LayerGeometryProvider *v, QPainter &paint, QRect rect) const; + }; #endif