Mercurial > hg > svgui
diff 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 |
line wrap: on
line diff
--- a/layer/WaveformLayer.h Fri Sep 21 11:50:15 2018 +0100 +++ b/layer/WaveformLayer.h Fri Sep 21 14:01:09 2018 +0100 @@ -211,8 +211,14 @@ /// Return value is number of channels displayed int getChannelArrangement(int &min, int &max, - bool &merging, bool &mixing) const; + bool &merging, bool &mixing) const; + void paintChannel(LayerGeometryProvider *, QPainter *paint, int channel, + const RangeSummarisableTimeValueModel::RangeBlock *ranges, + const RangeSummarisableTimeValueModel::RangeBlock *other, + int blockSize, int x0, int y0, int x1, int y1, + sv_frame_t frame0, sv_frame_t frame1) const; + int getYForValue(const LayerGeometryProvider *v, double value, int channel) const; double getValueForY(const LayerGeometryProvider *v, int y, int &channel) const;