Mercurial > hg > svgui
comparison layer/Colour3DPlotLayer.h @ 1324:13d9b422f7fe zoom
Merge from default branch
author | Chris Cannam |
---|---|
date | Mon, 17 Sep 2018 13:51:31 +0100 |
parents | a34a2a25907c |
children | d79e21855aef |
comparison
equal
deleted
inserted
replaced
1183:57d192e26331 | 1324:13d9b422f7fe |
---|---|
57 virtual void paintVerticalScale(LayerGeometryProvider *v, bool, QPainter &paint, QRect rect) const; | 57 virtual void paintVerticalScale(LayerGeometryProvider *v, bool, QPainter &paint, QRect rect) const; |
58 | 58 |
59 virtual QString getFeatureDescription(LayerGeometryProvider *v, QPoint &) const; | 59 virtual QString getFeatureDescription(LayerGeometryProvider *v, QPoint &) const; |
60 | 60 |
61 virtual bool snapToFeatureFrame(LayerGeometryProvider *v, sv_frame_t &frame, | 61 virtual bool snapToFeatureFrame(LayerGeometryProvider *v, sv_frame_t &frame, |
62 int &resolution, | 62 int &resolution, |
63 SnapType snap) const; | 63 SnapType snap) const; |
64 | 64 |
65 virtual void setLayerDormant(const LayerGeometryProvider *v, bool dormant); | 65 virtual void setLayerDormant(const LayerGeometryProvider *v, bool dormant); |
66 | 66 |
67 virtual bool isLayerScrollable(const LayerGeometryProvider *v) const; | 67 virtual bool isLayerScrollable(const LayerGeometryProvider *v) const; |
68 | 68 |
80 virtual QString getPropertyIconName(const PropertyName &) const; | 80 virtual QString getPropertyIconName(const PropertyName &) const; |
81 virtual QString getPropertyGroupName(const PropertyName &) const; | 81 virtual QString getPropertyGroupName(const PropertyName &) const; |
82 virtual int getPropertyRangeAndValue(const PropertyName &, | 82 virtual int getPropertyRangeAndValue(const PropertyName &, |
83 int *min, int *max, int *deflt) const; | 83 int *min, int *max, int *deflt) const; |
84 virtual QString getPropertyValueLabel(const PropertyName &, | 84 virtual QString getPropertyValueLabel(const PropertyName &, |
85 int value) const; | 85 int value) const; |
86 virtual QString getPropertyValueIconName(const PropertyName &, | 86 virtual QString getPropertyValueIconName(const PropertyName &, |
87 int value) const; | 87 int value) const; |
88 virtual RangeMapper *getNewPropertyRangeMapper(const PropertyName &) const; | 88 virtual RangeMapper *getNewPropertyRangeMapper(const PropertyName &) const; |
89 virtual void setProperty(const PropertyName &, int value); | 89 virtual void setProperty(const PropertyName &, int value); |
90 virtual void setProperties(const QXmlAttributes &); | 90 virtual void setProperties(const QXmlAttributes &); |
185 const int m_peakCacheDivisor; | 185 const int m_peakCacheDivisor; |
186 Dense3DModelPeakCache *getPeakCache() const; | 186 Dense3DModelPeakCache *getPeakCache() const; |
187 | 187 |
188 typedef std::map<int, MagnitudeRange> ViewMagMap; // key is view id | 188 typedef std::map<int, MagnitudeRange> ViewMagMap; // key is view id |
189 mutable ViewMagMap m_viewMags; | 189 mutable ViewMagMap m_viewMags; |
190 mutable ViewMagMap m_lastRenderedMags; // when in normalizeVisibleArea mode | |
191 void invalidateMagnitudes(); | |
190 | 192 |
191 typedef std::map<int, Colour3DPlotRenderer *> ViewRendererMap; // key is view id | 193 typedef std::map<int, Colour3DPlotRenderer *> ViewRendererMap; // key is view id |
192 mutable ViewRendererMap m_renderers; | 194 mutable ViewRendererMap m_renderers; |
193 | 195 |
194 Colour3DPlotRenderer *getRenderer(const LayerGeometryProvider *) const; | 196 Colour3DPlotRenderer *getRenderer(const LayerGeometryProvider *) const; |
207 * coordinate. Note that the whole numbers occur at the positions | 209 * coordinate. Note that the whole numbers occur at the positions |
208 * at which the bins "start" (i.e. the bottom of the visible bin, | 210 * at which the bins "start" (i.e. the bottom of the visible bin, |
209 * if the vertical scale is the usual way up). | 211 * if the vertical scale is the usual way up). |
210 */ | 212 */ |
211 double getBinForY(const LayerGeometryProvider *, double y) const; | 213 double getBinForY(const LayerGeometryProvider *, double y) const; |
212 | |
213 DenseThreeDimensionalModel::Column getColumn(int col) const; | |
214 | 214 |
215 int getColourScaleWidth(QPainter &) const; | 215 int getColourScaleWidth(QPainter &) const; |
216 | 216 |
217 void paintWithRenderer(LayerGeometryProvider *v, QPainter &paint, QRect rect) const; | 217 void paintWithRenderer(LayerGeometryProvider *v, QPainter &paint, QRect rect) const; |
218 }; | 218 }; |