Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
1100:102f986ec032 | 1101:1364cbf4453d |
---|---|
50 virtual const ZoomConstraint *getZoomConstraint() const { | 50 virtual const ZoomConstraint *getZoomConstraint() const { |
51 return m_model ? m_model->getZoomConstraint() : 0; | 51 return m_model ? m_model->getZoomConstraint() : 0; |
52 } | 52 } |
53 virtual const Model *getModel() const { return m_model; } | 53 virtual const Model *getModel() const { return m_model; } |
54 virtual void paint(LayerGeometryProvider *v, QPainter &paint, QRect rect) const; | 54 virtual void paint(LayerGeometryProvider *v, QPainter &paint, QRect rect) const; |
55 virtual void setSynchronousPainting(bool synchronous); | |
55 | 56 |
56 virtual int getVerticalScaleWidth(LayerGeometryProvider *v, bool, QPainter &) const; | 57 virtual int getVerticalScaleWidth(LayerGeometryProvider *v, bool, QPainter &) const; |
57 virtual void paintVerticalScale(LayerGeometryProvider *v, bool, QPainter &paint, QRect rect) const; | 58 virtual void paintVerticalScale(LayerGeometryProvider *v, bool, QPainter &paint, QRect rect) const; |
58 | 59 |
59 virtual QString getFeatureDescription(LayerGeometryProvider *v, QPoint &) const; | 60 virtual QString getFeatureDescription(LayerGeometryProvider *v, QPoint &) const; |
170 // Minimum and maximum bin numbers visible within the view. We | 171 // Minimum and maximum bin numbers visible within the view. We |
171 // always snap to whole bins at view edges. | 172 // always snap to whole bins at view edges. |
172 int m_miny; | 173 int m_miny; |
173 int m_maxy; | 174 int m_maxy; |
174 | 175 |
176 bool m_synchronous; | |
177 | |
175 mutable Dense3DModelPeakCache *m_peakCache; | 178 mutable Dense3DModelPeakCache *m_peakCache; |
176 const int m_peakCacheDivisor; | 179 const int m_peakCacheDivisor; |
177 Dense3DModelPeakCache *getPeakCache() const; | 180 Dense3DModelPeakCache *getPeakCache() const; |
178 | 181 |
179 typedef std::map<int, Colour3DPlotRenderer *> ViewRendererMap; // key is view id | 182 typedef std::map<int, Colour3DPlotRenderer *> ViewRendererMap; // key is view id |
206 bool shouldPaintDenseIn(const LayerGeometryProvider *) const; | 209 bool shouldPaintDenseIn(const LayerGeometryProvider *) const; |
207 | 210 |
208 int getColourScaleWidth(QPainter &) const; | 211 int getColourScaleWidth(QPainter &) const; |
209 void fillCache(int firstBin, int lastBin) const; | 212 void fillCache(int firstBin, int lastBin) const; |
210 void paintDense(LayerGeometryProvider *v, QPainter &paint, QRect rect) const; | 213 void paintDense(LayerGeometryProvider *v, QPainter &paint, QRect rect) const; |
214 | |
215 void paintAlternative(LayerGeometryProvider *v, QPainter &paint, QRect rect) const; | |
216 | |
211 }; | 217 }; |
212 | 218 |
213 #endif | 219 #endif |