Mercurial > hg > svgui
comparison layer/SpectrogramLayer.h @ 77:fd348f36c0d3
* Implement harmonic cursor in spectrogram
* Implement layer export. This doesn't quite do the right thing for the SV
XML layer export yet -- it doesn't include layer display information, so
when imported, it only creates an invisible model. Could also do with
fixing CSV file import so as to work correctly for note and text layers.
author | Chris Cannam |
---|---|
date | Mon, 10 Apr 2006 17:22:59 +0000 |
parents | 72fa239a4880 |
children | 19bf27e4fb29 |
comparison
equal
deleted
inserted
replaced
76:45ba0b381c5d | 77:fd348f36c0d3 |
---|---|
56 virtual const Model *getModel() const { return m_model; } | 56 virtual const Model *getModel() const { return m_model; } |
57 virtual void paint(View *v, QPainter &paint, QRect rect) const; | 57 virtual void paint(View *v, QPainter &paint, QRect rect) const; |
58 | 58 |
59 virtual int getVerticalScaleWidth(View *v, QPainter &) const; | 59 virtual int getVerticalScaleWidth(View *v, QPainter &) const; |
60 virtual void paintVerticalScale(View *v, QPainter &paint, QRect rect) const; | 60 virtual void paintVerticalScale(View *v, QPainter &paint, QRect rect) const; |
61 | |
62 virtual bool getCrosshairExtents(View *, QPainter &, QPoint cursorPos, | |
63 std::vector<QRect> &extents) const; | |
64 virtual void paintCrosshairs(View *, QPainter &, QPoint) const; | |
61 | 65 |
62 virtual QString getFeatureDescription(View *v, QPoint &) const; | 66 virtual QString getFeatureDescription(View *v, QPoint &) const; |
63 | 67 |
64 virtual bool snapToFeatureFrame(View *v, int &frame, | 68 virtual bool snapToFeatureFrame(View *v, int &frame, |
65 size_t &resolution, | 69 size_t &resolution, |
205 int m_colourRotation; | 209 int m_colourRotation; |
206 size_t m_minFrequency; | 210 size_t m_minFrequency; |
207 size_t m_maxFrequency; | 211 size_t m_maxFrequency; |
208 ColourScale m_colourScale; | 212 ColourScale m_colourScale; |
209 ColourScheme m_colourScheme; | 213 ColourScheme m_colourScheme; |
214 QColor m_crosshairColour; | |
210 FrequencyScale m_frequencyScale; | 215 FrequencyScale m_frequencyScale; |
211 BinDisplay m_binDisplay; | 216 BinDisplay m_binDisplay; |
212 bool m_normalizeColumns; | 217 bool m_normalizeColumns; |
213 | 218 |
214 // At the moment we cache one unsigned char per bin for the | 219 // At the moment we cache one unsigned char per bin for the |