Mercurial > hg > svgui
comparison layer/Colour3DPlotLayer.h @ 1045:f535f6e5dbb0 alignment-simple
Merge in from SV 3.0-integration branches
author | Chris Cannam |
---|---|
date | Wed, 02 Mar 2016 17:25:27 +0000 |
parents | 7242fe160c19 |
children | 521f7e8b0559 |
comparison
equal
deleted
inserted
replaced
976:f2c63ec85901 | 1045:f535f6e5dbb0 |
---|---|
47 | 47 |
48 virtual const ZoomConstraint *getZoomConstraint() const { | 48 virtual const ZoomConstraint *getZoomConstraint() const { |
49 return m_model ? m_model->getZoomConstraint() : 0; | 49 return m_model ? m_model->getZoomConstraint() : 0; |
50 } | 50 } |
51 virtual const Model *getModel() const { return m_model; } | 51 virtual const Model *getModel() const { return m_model; } |
52 virtual void paint(View *v, QPainter &paint, QRect rect) const; | 52 virtual void paint(LayerGeometryProvider *v, QPainter &paint, QRect rect) const; |
53 | 53 |
54 virtual int getVerticalScaleWidth(View *v, bool, QPainter &) const; | 54 virtual int getVerticalScaleWidth(LayerGeometryProvider *v, bool, QPainter &) const; |
55 virtual void paintVerticalScale(View *v, bool, QPainter &paint, QRect rect) const; | 55 virtual void paintVerticalScale(LayerGeometryProvider *v, bool, QPainter &paint, QRect rect) const; |
56 | 56 |
57 virtual QString getFeatureDescription(View *v, QPoint &) const; | 57 virtual QString getFeatureDescription(LayerGeometryProvider *v, QPoint &) const; |
58 | 58 |
59 virtual bool snapToFeatureFrame(View *v, sv_frame_t &frame, | 59 virtual bool snapToFeatureFrame(LayerGeometryProvider *v, sv_frame_t &frame, |
60 int &resolution, | 60 int &resolution, |
61 SnapType snap) const; | 61 SnapType snap) const; |
62 | 62 |
63 virtual void setLayerDormant(const View *v, bool dormant); | 63 virtual void setLayerDormant(const LayerGeometryProvider *v, bool dormant); |
64 | 64 |
65 virtual bool isLayerScrollable(const View *v) const; | 65 virtual bool isLayerScrollable(const LayerGeometryProvider *v) const; |
66 | 66 |
67 virtual ColourSignificance getLayerColourSignificance() const { | 67 virtual ColourSignificance getLayerColourSignificance() const { |
68 return ColourHasMeaningfulValue; | 68 return ColourHasMeaningfulValue; |
69 } | 69 } |
70 | 70 |
71 void setModel(const DenseThreeDimensionalModel *model); | 71 void setModel(const DenseThreeDimensionalModel *model); |
72 | 72 |
73 virtual int getCompletion(View *) const { return m_model->getCompletion(); } | 73 virtual int getCompletion(LayerGeometryProvider *) const { return m_model->getCompletion(); } |
74 | 74 |
75 virtual PropertyList getProperties() const; | 75 virtual PropertyList getProperties() const; |
76 virtual PropertyType getPropertyType(const PropertyName &) const; | 76 virtual PropertyType getPropertyType(const PropertyName &) const; |
77 virtual QString getPropertyLabel(const PropertyName &) const; | 77 virtual QString getPropertyLabel(const PropertyName &) const; |
78 virtual QString getPropertyIconName(const PropertyName &) const; | 78 virtual QString getPropertyIconName(const PropertyName &) const; |
137 bool getNormalizeHybrid() const; | 137 bool getNormalizeHybrid() const; |
138 | 138 |
139 void setInvertVertical(bool i); | 139 void setInvertVertical(bool i); |
140 bool getInvertVertical() const; | 140 bool getInvertVertical() const; |
141 | 141 |
142 void setShowRectified(bool); | |
143 bool getShowRectified() const { return m_rectified; } | |
144 | |
145 void setOpaque(bool i); | 142 void setOpaque(bool i); |
146 bool getOpaque() const; | 143 bool getOpaque() const; |
147 | 144 |
148 void setSmooth(bool i); | 145 void setSmooth(bool i); |
149 bool getSmooth() const; | 146 bool getSmooth() const; |
152 bool &logarithmic, QString &unit) const; | 149 bool &logarithmic, QString &unit) const; |
153 | 150 |
154 virtual bool getDisplayExtents(double &min, double &max) const; | 151 virtual bool getDisplayExtents(double &min, double &max) const; |
155 virtual bool setDisplayExtents(double min, double max); | 152 virtual bool setDisplayExtents(double min, double max); |
156 | 153 |
157 virtual bool getYScaleValue(const View *, int /* y */, | 154 virtual bool getYScaleValue(const LayerGeometryProvider *, int /* y */, |
158 double &/* value */, QString &/* unit */) const; | 155 double &/* value */, QString &/* unit */) const; |
159 | 156 |
160 virtual int getVerticalZoomSteps(int &defaultStep) const; | 157 virtual int getVerticalZoomSteps(int &defaultStep) const; |
161 virtual int getCurrentVerticalZoomStep() const; | 158 virtual int getCurrentVerticalZoomStep() const; |
162 virtual void setVerticalZoomStep(int); | 159 virtual void setVerticalZoomStep(int); |
188 BinScale m_binScale; | 185 BinScale m_binScale; |
189 bool m_normalizeColumns; | 186 bool m_normalizeColumns; |
190 bool m_normalizeVisibleArea; | 187 bool m_normalizeVisibleArea; |
191 bool m_normalizeHybrid; | 188 bool m_normalizeHybrid; |
192 bool m_invertVertical; | 189 bool m_invertVertical; |
193 bool m_rectified; | |
194 bool m_opaque; | 190 bool m_opaque; |
195 bool m_smooth; | 191 bool m_smooth; |
196 int m_peakResolution; | 192 int m_peakResolution; |
197 | 193 |
198 // Minimum and maximum bin numbers visible within the view. We | 194 // Minimum and maximum bin numbers visible within the view. We |
204 * Return the y coordinate at which the given bin "starts" | 200 * Return the y coordinate at which the given bin "starts" |
205 * (i.e. at the bottom of the bin, if the given bin is an integer | 201 * (i.e. at the bottom of the bin, if the given bin is an integer |
206 * and the vertical scale is the usual way up). Bin number may be | 202 * and the vertical scale is the usual way up). Bin number may be |
207 * fractional, to obtain a position part-way through a bin. | 203 * fractional, to obtain a position part-way through a bin. |
208 */ | 204 */ |
209 double getYForBin(View *, double bin) const; | 205 double getYForBin(LayerGeometryProvider *, double bin) const; |
210 | 206 |
211 /** | 207 /** |
212 * As getYForBin, but rounding to integer values. | 208 * As getYForBin, but rounding to integer values. |
213 */ | 209 */ |
214 int getIYForBin(View *, int bin) const; | 210 int getIYForBin(LayerGeometryProvider *, int bin) const; |
215 | 211 |
216 /** | 212 /** |
217 * Return the bin number, possibly fractional, at the given y | 213 * Return the bin number, possibly fractional, at the given y |
218 * coordinate. Note that the whole numbers occur at the positions | 214 * coordinate. Note that the whole numbers occur at the positions |
219 * at which the bins "start" (i.e. the bottom of the visible bin, | 215 * at which the bins "start" (i.e. the bottom of the visible bin, |
220 * if the vertical scale is the usual way up). | 216 * if the vertical scale is the usual way up). |
221 */ | 217 */ |
222 double getBinForY(View *, double y) const; | 218 double getBinForY(LayerGeometryProvider *, double y) const; |
223 | 219 |
224 /** | 220 /** |
225 * As getBinForY, but rounding to integer values. | 221 * As getBinForY, but rounding to integer values. |
226 */ | 222 */ |
227 int getIBinForY(View *, int y) const; | 223 int getIBinForY(LayerGeometryProvider *, int y) const; |
228 | 224 |
229 DenseThreeDimensionalModel::Column getColumn(int col) const; | 225 DenseThreeDimensionalModel::Column getColumn(int col) const; |
230 | 226 |
231 /** | 227 /** |
232 * True if we have the opaque or smooth flag set, or if the cells | 228 * True if we have the opaque or smooth flag set, or if the cells |
233 * are so small you can't see their borders. False for big, | 229 * are so small you can't see their borders. False for big, |
234 * translucent cells. | 230 * translucent cells. |
235 */ | 231 */ |
236 bool shouldPaintDenseIn(const View *) const; | 232 bool shouldPaintDenseIn(const LayerGeometryProvider *) const; |
237 | 233 |
238 int getColourScaleWidth(QPainter &) const; | 234 int getColourScaleWidth(QPainter &) const; |
239 void fillCache(int firstBin, int lastBin) const; | 235 void fillCache(int firstBin, int lastBin) const; |
240 void paintDense(View *v, QPainter &paint, QRect rect) const; | 236 void paintDense(LayerGeometryProvider *v, QPainter &paint, QRect rect) const; |
241 }; | 237 }; |
242 | 238 |
243 #endif | 239 #endif |