Mercurial > hg > svgui
comparison layer/Colour3DPlotLayer.h @ 805:1d526ba11a24 warnfix_no_size_t
Remove size_t's and fix warnings in layer/
author | Chris Cannam |
---|---|
date | Tue, 17 Jun 2014 15:18:06 +0100 |
parents | c27a3604fe6f |
children | 6c52314b31b0 |
comparison
equal
deleted
inserted
replaced
782:ddae586bc47b | 805:1d526ba11a24 |
---|---|
55 virtual void paintVerticalScale(View *v, bool, QPainter &paint, QRect rect) const; | 55 virtual void paintVerticalScale(View *v, bool, QPainter &paint, QRect rect) const; |
56 | 56 |
57 virtual QString getFeatureDescription(View *v, QPoint &) const; | 57 virtual QString getFeatureDescription(View *v, QPoint &) const; |
58 | 58 |
59 virtual bool snapToFeatureFrame(View *v, int &frame, | 59 virtual bool snapToFeatureFrame(View *v, int &frame, |
60 size_t &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 View *v, bool dormant); |
64 | 64 |
65 virtual bool isLayerScrollable(const View *v) const; | 65 virtual bool isLayerScrollable(const View *v) const; |
164 virtual void toXml(QTextStream &stream, QString indent = "", | 164 virtual void toXml(QTextStream &stream, QString indent = "", |
165 QString extraAttributes = "") const; | 165 QString extraAttributes = "") const; |
166 | 166 |
167 protected slots: | 167 protected slots: |
168 void cacheInvalid(); | 168 void cacheInvalid(); |
169 void cacheInvalid(size_t startFrame, size_t endFrame); | 169 void cacheInvalid(int startFrame, int endFrame); |
170 void modelChanged(); | 170 void modelChanged(); |
171 void modelChanged(size_t, size_t); | 171 void modelChanged(int, int); |
172 | 172 |
173 protected: | 173 protected: |
174 const DenseThreeDimensionalModel *m_model; // I do not own this | 174 const DenseThreeDimensionalModel *m_model; // I do not own this |
175 | 175 |
176 mutable QImage *m_cache; | 176 mutable QImage *m_cache; |
177 mutable QImage *m_peaksCache; | 177 mutable QImage *m_peaksCache; |
178 mutable size_t m_cacheValidStart; | 178 mutable int m_cacheValidStart; |
179 mutable size_t m_cacheValidEnd; | 179 mutable int m_cacheValidEnd; |
180 | 180 |
181 ColourScale m_colourScale; | 181 ColourScale m_colourScale; |
182 bool m_colourScaleSet; | 182 bool m_colourScaleSet; |
183 int m_colourMap; | 183 int m_colourMap; |
184 float m_gain; | 184 float m_gain; |
187 bool m_normalizeVisibleArea; | 187 bool m_normalizeVisibleArea; |
188 bool m_normalizeHybrid; | 188 bool m_normalizeHybrid; |
189 bool m_invertVertical; | 189 bool m_invertVertical; |
190 bool m_opaque; | 190 bool m_opaque; |
191 bool m_smooth; | 191 bool m_smooth; |
192 size_t m_peakResolution; | 192 int m_peakResolution; |
193 | 193 |
194 // Minimum and maximum bin numbers visible within the view. We | 194 // Minimum and maximum bin numbers visible within the view. We |
195 // always snap to whole bins at view edges. | 195 // always snap to whole bins at view edges. |
196 int m_miny; | 196 int m_miny; |
197 int m_maxy; | 197 int m_maxy; |
210 * 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, |
211 * if the vertical scale is the usual way up). | 211 * if the vertical scale is the usual way up). |
212 */ | 212 */ |
213 float getBinForY(View *, float y) const; | 213 float getBinForY(View *, float y) const; |
214 | 214 |
215 DenseThreeDimensionalModel::Column getColumn(size_t col) const; | 215 DenseThreeDimensionalModel::Column getColumn(int col) const; |
216 | 216 |
217 int getColourScaleWidth(QPainter &) const; | 217 int getColourScaleWidth(QPainter &) const; |
218 void fillCache(size_t firstBin, size_t lastBin) const; | 218 void fillCache(int firstBin, int lastBin) const; |
219 void paintDense(View *v, QPainter &paint, QRect rect) const; | 219 void paintDense(View *v, QPainter &paint, QRect rect) const; |
220 }; | 220 }; |
221 | 221 |
222 #endif | 222 #endif |