comparison layer/Colour3DPlotLayer.h @ 978:64c2b3a4435a 3.0-integration

Merge from branch osx-retina
author Chris Cannam
date Fri, 26 Jun 2015 14:10:40 +0100
parents 1011ffb1b6d5
children 7242fe160c19
comparison
equal deleted inserted replaced
977:f40ccbf228c2 978:64c2b3a4435a
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;
152 bool &logarithmic, QString &unit) const; 152 bool &logarithmic, QString &unit) const;
153 153
154 virtual bool getDisplayExtents(double &min, double &max) const; 154 virtual bool getDisplayExtents(double &min, double &max) const;
155 virtual bool setDisplayExtents(double min, double max); 155 virtual bool setDisplayExtents(double min, double max);
156 156
157 virtual bool getYScaleValue(const View *, int /* y */, 157 virtual bool getYScaleValue(const LayerGeometryProvider *, int /* y */,
158 double &/* value */, QString &/* unit */) const; 158 double &/* value */, QString &/* unit */) const;
159 159
160 virtual int getVerticalZoomSteps(int &defaultStep) const; 160 virtual int getVerticalZoomSteps(int &defaultStep) const;
161 virtual int getCurrentVerticalZoomStep() const; 161 virtual int getCurrentVerticalZoomStep() const;
162 virtual void setVerticalZoomStep(int); 162 virtual void setVerticalZoomStep(int);
204 * Return the y coordinate at which the given bin "starts" 204 * 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 205 * (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 206 * and the vertical scale is the usual way up). Bin number may be
207 * fractional, to obtain a position part-way through a bin. 207 * fractional, to obtain a position part-way through a bin.
208 */ 208 */
209 double getYForBin(View *, double bin) const; 209 double getYForBin(LayerGeometryProvider *, double bin) const;
210 210
211 /** 211 /**
212 * As getYForBin, but rounding to integer values. 212 * As getYForBin, but rounding to integer values.
213 */ 213 */
214 int getIYForBin(View *, int bin) const; 214 int getIYForBin(LayerGeometryProvider *, int bin) const;
215 215
216 /** 216 /**
217 * Return the bin number, possibly fractional, at the given y 217 * Return the bin number, possibly fractional, at the given y
218 * coordinate. Note that the whole numbers occur at the positions 218 * coordinate. Note that the whole numbers occur at the positions
219 * at which the bins "start" (i.e. the bottom of the visible bin, 219 * at which the bins "start" (i.e. the bottom of the visible bin,
220 * if the vertical scale is the usual way up). 220 * if the vertical scale is the usual way up).
221 */ 221 */
222 double getBinForY(View *, double y) const; 222 double getBinForY(LayerGeometryProvider *, double y) const;
223 223
224 /** 224 /**
225 * As getBinForY, but rounding to integer values. 225 * As getBinForY, but rounding to integer values.
226 */ 226 */
227 int getIBinForY(View *, int y) const; 227 int getIBinForY(LayerGeometryProvider *, int y) const;
228 228
229 DenseThreeDimensionalModel::Column getColumn(int col) const; 229 DenseThreeDimensionalModel::Column getColumn(int col) const;
230 230
231 /** 231 /**
232 * True if we have the opaque or smooth flag set, or if the cells 232 * 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, 233 * are so small you can't see their borders. False for big,
234 * translucent cells. 234 * translucent cells.
235 */ 235 */
236 bool shouldPaintDenseIn(const View *) const; 236 bool shouldPaintDenseIn(const LayerGeometryProvider *) const;
237 237
238 int getColourScaleWidth(QPainter &) const; 238 int getColourScaleWidth(QPainter &) const;
239 void fillCache(int firstBin, int lastBin) const; 239 void fillCache(int firstBin, int lastBin) const;
240 void paintDense(View *v, QPainter &paint, QRect rect) const; 240 void paintDense(LayerGeometryProvider *v, QPainter &paint, QRect rect) const;
241 }; 241 };
242 242
243 #endif 243 #endif