comparison layer/WaveformLayer.h @ 1332:6dac67c3ed82 zoom

Refactor out paintChannel
author Chris Cannam
date Fri, 21 Sep 2018 14:01:09 +0100
parents bc2cb82050a0
children 59f6830be8d8
comparison
equal deleted inserted replaced
1331:9758dfc12555 1332:6dac67c3ed82
209 209
210 const RangeSummarisableTimeValueModel *m_model; // I do not own this 210 const RangeSummarisableTimeValueModel *m_model; // I do not own this
211 211
212 /// Return value is number of channels displayed 212 /// Return value is number of channels displayed
213 int getChannelArrangement(int &min, int &max, 213 int getChannelArrangement(int &min, int &max,
214 bool &merging, bool &mixing) const; 214 bool &merging, bool &mixing) const;
215 215
216 void paintChannel(LayerGeometryProvider *, QPainter *paint, int channel,
217 const RangeSummarisableTimeValueModel::RangeBlock *ranges,
218 const RangeSummarisableTimeValueModel::RangeBlock *other,
219 int blockSize, int x0, int y0, int x1, int y1,
220 sv_frame_t frame0, sv_frame_t frame1) const;
221
216 int getYForValue(const LayerGeometryProvider *v, double value, int channel) const; 222 int getYForValue(const LayerGeometryProvider *v, double value, int channel) const;
217 223
218 double getValueForY(const LayerGeometryProvider *v, int y, int &channel) const; 224 double getValueForY(const LayerGeometryProvider *v, int y, int &channel) const;
219 225
220 bool getSourceFramesForX(LayerGeometryProvider *v, int x, int modelZoomLevel, 226 bool getSourceFramesForX(LayerGeometryProvider *v, int x, int modelZoomLevel,