Mercurial > hg > svgui
comparison layer/Colour3DPlotLayer.h @ 1414:fa986b91d77f
Merge from branch fix-static-analysis
author | Chris Cannam |
---|---|
date | Wed, 09 Jan 2019 15:24:51 +0000 |
parents | a18e78b9c78b |
children | 39f1154c0e97 |
comparison
equal
deleted
inserted
replaced
1413:0930a27ebea2 | 1414:fa986b91d77f |
---|---|
44 | 44 |
45 public: | 45 public: |
46 Colour3DPlotLayer(); | 46 Colour3DPlotLayer(); |
47 ~Colour3DPlotLayer(); | 47 ~Colour3DPlotLayer(); |
48 | 48 |
49 virtual const ZoomConstraint *getZoomConstraint() const { | 49 const ZoomConstraint *getZoomConstraint() const override { |
50 return m_model ? m_model->getZoomConstraint() : 0; | 50 return m_model ? m_model->getZoomConstraint() : 0; |
51 } | 51 } |
52 virtual const Model *getModel() const { return m_model; } | 52 const Model *getModel() const override { return m_model; } |
53 virtual void paint(LayerGeometryProvider *v, QPainter &paint, QRect rect) const; | 53 void paint(LayerGeometryProvider *v, QPainter &paint, QRect rect) const override; |
54 virtual void setSynchronousPainting(bool synchronous); | 54 void setSynchronousPainting(bool synchronous) override; |
55 | 55 |
56 virtual int getVerticalScaleWidth(LayerGeometryProvider *v, bool, QPainter &) const; | 56 int getVerticalScaleWidth(LayerGeometryProvider *v, bool, QPainter &) const override; |
57 virtual void paintVerticalScale(LayerGeometryProvider *v, bool, QPainter &paint, QRect rect) const; | 57 void paintVerticalScale(LayerGeometryProvider *v, bool, QPainter &paint, QRect rect) const override; |
58 | 58 |
59 virtual QString getFeatureDescription(LayerGeometryProvider *v, QPoint &) const; | 59 QString getFeatureDescription(LayerGeometryProvider *v, QPoint &) const override; |
60 | 60 |
61 virtual bool snapToFeatureFrame(LayerGeometryProvider *v, sv_frame_t &frame, | 61 bool snapToFeatureFrame(LayerGeometryProvider *v, sv_frame_t &frame, |
62 int &resolution, | 62 int &resolution, |
63 SnapType snap) const; | 63 SnapType snap) const override; |
64 | 64 |
65 virtual void setLayerDormant(const LayerGeometryProvider *v, bool dormant); | 65 void setLayerDormant(const LayerGeometryProvider *v, bool dormant) override; |
66 | 66 |
67 virtual bool isLayerScrollable(const LayerGeometryProvider *v) const; | 67 bool isLayerScrollable(const LayerGeometryProvider *v) const override; |
68 | 68 |
69 virtual ColourSignificance getLayerColourSignificance() const { | 69 ColourSignificance getLayerColourSignificance() const override { |
70 return ColourHasMeaningfulValue; | 70 return ColourHasMeaningfulValue; |
71 } | 71 } |
72 | 72 |
73 void setModel(const DenseThreeDimensionalModel *model); | 73 void setModel(const DenseThreeDimensionalModel *model); |
74 | 74 |
75 virtual int getCompletion(LayerGeometryProvider *) const { return m_model->getCompletion(); } | 75 int getCompletion(LayerGeometryProvider *) const override { return m_model->getCompletion(); } |
76 | 76 |
77 virtual PropertyList getProperties() const; | 77 PropertyList getProperties() const override; |
78 virtual PropertyType getPropertyType(const PropertyName &) const; | 78 PropertyType getPropertyType(const PropertyName &) const override; |
79 virtual QString getPropertyLabel(const PropertyName &) const; | 79 QString getPropertyLabel(const PropertyName &) const override; |
80 virtual QString getPropertyIconName(const PropertyName &) const; | 80 QString getPropertyIconName(const PropertyName &) const override; |
81 virtual QString getPropertyGroupName(const PropertyName &) const; | 81 QString getPropertyGroupName(const PropertyName &) const override; |
82 virtual int getPropertyRangeAndValue(const PropertyName &, | 82 int getPropertyRangeAndValue(const PropertyName &, |
83 int *min, int *max, int *deflt) const; | 83 int *min, int *max, int *deflt) const override; |
84 virtual QString getPropertyValueLabel(const PropertyName &, | 84 QString getPropertyValueLabel(const PropertyName &, |
85 int value) const; | 85 int value) const override; |
86 virtual QString getPropertyValueIconName(const PropertyName &, | 86 QString getPropertyValueIconName(const PropertyName &, |
87 int value) const; | 87 int value) const override; |
88 virtual RangeMapper *getNewPropertyRangeMapper(const PropertyName &) const; | 88 RangeMapper *getNewPropertyRangeMapper(const PropertyName &) const override; |
89 virtual void setProperty(const PropertyName &, int value); | 89 void setProperty(const PropertyName &, int value) override; |
90 virtual void setProperties(const QXmlAttributes &); | 90 void setProperties(const QXmlAttributes &) override; |
91 | 91 |
92 void setColourScale(ColourScaleType); | 92 void setColourScale(ColourScaleType); |
93 ColourScaleType getColourScale() const { return m_colourScale; } | 93 ColourScaleType getColourScale() const { return m_colourScale; } |
94 | 94 |
95 void setColourMap(int map); | 95 void setColourMap(int map); |
127 bool getOpaque() const; | 127 bool getOpaque() const; |
128 | 128 |
129 void setSmooth(bool i); | 129 void setSmooth(bool i); |
130 bool getSmooth() const; | 130 bool getSmooth() const; |
131 | 131 |
132 virtual bool getValueExtents(double &min, double &max, | 132 bool getValueExtents(double &min, double &max, |
133 bool &logarithmic, QString &unit) const; | 133 bool &logarithmic, QString &unit) const override; |
134 | 134 |
135 virtual bool getDisplayExtents(double &min, double &max) const; | 135 bool getDisplayExtents(double &min, double &max) const override; |
136 virtual bool setDisplayExtents(double min, double max); | 136 bool setDisplayExtents(double min, double max) override; |
137 | 137 |
138 virtual bool getYScaleValue(const LayerGeometryProvider *, int /* y */, | 138 bool getYScaleValue(const LayerGeometryProvider *, int /* y */, |
139 double &/* value */, QString &/* unit */) const; | 139 double &/* value */, QString &/* unit */) const override; |
140 | 140 |
141 virtual int getVerticalZoomSteps(int &defaultStep) const; | 141 int getVerticalZoomSteps(int &defaultStep) const override; |
142 virtual int getCurrentVerticalZoomStep() const; | 142 int getCurrentVerticalZoomStep() const override; |
143 virtual void setVerticalZoomStep(int); | 143 void setVerticalZoomStep(int) override; |
144 virtual RangeMapper *getNewVerticalZoomRangeMapper() const; | 144 RangeMapper *getNewVerticalZoomRangeMapper() const override; |
145 | 145 |
146 virtual const Model *getSliceableModel() const { return m_model; } | 146 const Model *getSliceableModel() const override { return m_model; } |
147 | 147 |
148 virtual void toXml(QTextStream &stream, QString indent = "", | 148 void toXml(QTextStream &stream, QString indent = "", |
149 QString extraAttributes = "") const; | 149 QString extraAttributes = "") const override; |
150 | 150 |
151 protected slots: | 151 protected slots: |
152 void cacheInvalid(); | 152 void cacheInvalid(); |
153 void cacheInvalid(sv_frame_t startFrame, sv_frame_t endFrame); | 153 void cacheInvalid(sv_frame_t startFrame, sv_frame_t endFrame); |
154 void modelChanged(); | 154 void modelChanged(); |
201 * Return the y coordinate at which the given bin "starts" | 201 * Return the y coordinate at which the given bin "starts" |
202 * (i.e. at the bottom of the bin, if the given bin is an integer | 202 * (i.e. at the bottom of the bin, if the given bin is an integer |
203 * and the vertical scale is the usual way up). Bin number may be | 203 * and the vertical scale is the usual way up). Bin number may be |
204 * fractional, to obtain a position part-way through a bin. | 204 * fractional, to obtain a position part-way through a bin. |
205 */ | 205 */ |
206 double getYForBin(const LayerGeometryProvider *, double bin) const; | 206 double getYForBin(const LayerGeometryProvider *, double bin) const override; |
207 | 207 |
208 /** | 208 /** |
209 * Return the bin number, possibly fractional, at the given y | 209 * Return the bin number, possibly fractional, at the given y |
210 * coordinate. Note that the whole numbers occur at the positions | 210 * coordinate. Note that the whole numbers occur at the positions |
211 * at which the bins "start" (i.e. the bottom of the visible bin, | 211 * at which the bins "start" (i.e. the bottom of the visible bin, |
212 * if the vertical scale is the usual way up). | 212 * if the vertical scale is the usual way up). |
213 */ | 213 */ |
214 double getBinForY(const LayerGeometryProvider *, double y) const; | 214 double getBinForY(const LayerGeometryProvider *, double y) const override; |
215 | 215 |
216 int getColourScaleWidth(QPainter &) const; | 216 int getColourScaleWidth(QPainter &) const; |
217 | 217 |
218 void paintWithRenderer(LayerGeometryProvider *v, QPainter &paint, QRect rect) const; | 218 void paintWithRenderer(LayerGeometryProvider *v, QPainter &paint, QRect rect) const; |
219 }; | 219 }; |