diff layer/SliceLayer.h @ 274:b9380f679f70

* Fix centre line position * Fix failure to update overview when generating peaks from wav file * Provide y-coordinate scale values and differences for spectrum measurement mode, and fix values for waveform (inc dB for both) * Add Printer colour scheme (may be futile)
author Chris Cannam
date Mon, 02 Jul 2007 13:04:17 +0000
parents 4ed1446ad604
children 1284955856ab
line wrap: on
line diff
--- a/layer/SliceLayer.h	Fri Jun 29 16:50:59 2007 +0000
+++ b/layer/SliceLayer.h	Mon Jul 02 13:04:17 2007 +0000
@@ -107,6 +107,9 @@
 protected:
     virtual float getXForBin(int bin, int totalBins, float w) const;
     virtual int getBinForX(float x, int totalBins, float w) const;
+
+    virtual float getYForValue(float value, const View *v, float &norm) const;
+    virtual float getValueForY(float y, const View *v) const;
     
     virtual QString getFeatureDescription(View *v, QPoint &,
                                           bool includeBinDescription,
@@ -130,6 +133,8 @@
     float                             m_gain;
     mutable std::vector<int>          m_scalePoints;
     mutable std::map<const View *, int> m_xorigins;
+    mutable std::map<const View *, int> m_yorigins;
+    mutable std::map<const View *, int> m_heights;
     mutable size_t                    m_currentf0;
     mutable size_t                    m_currentf1;
     mutable std::vector<float>        m_values;