Mercurial > hg > svcore
diff base/RangeMapper.h @ 464:9525c9d7e54d
* Add vertical zoom and pan to time-value layer.
Still some defects, particularly in logarithmic mode.
Now need to get this in note layer as well!
* Some fixes to log colouring in segmentation mode of time-value layer.
author | Chris Cannam |
---|---|
date | Fri, 24 Oct 2008 14:52:40 +0000 |
parents | ca3b91119482 |
children | b4a8d8221eaf |
line wrap: on
line diff
--- a/base/RangeMapper.h Thu Oct 23 16:32:00 2008 +0000 +++ b/base/RangeMapper.h Fri Oct 24 14:52:40 2008 +0000 @@ -34,7 +34,7 @@ public: LinearRangeMapper(int minpos, int maxpos, float minval, float maxval, - QString unit = ""); + QString unit = "", bool inverted = false); virtual int getPositionForValue(float value) const; virtual float getValueForPosition(int position) const; @@ -47,6 +47,7 @@ float m_minval; float m_maxval; QString m_unit; + bool m_inverted; }; @@ -55,7 +56,7 @@ public: LogRangeMapper(int minpos, int maxpos, float minval, float maxval, - QString m_unit = ""); + QString m_unit = "", bool inverted = false); static void convertRatioMinLog(float ratio, float minlog, int minpos, int maxpos, @@ -77,6 +78,7 @@ float m_minlog; float m_maxlog; QString m_unit; + bool m_inverted; };