Mercurial > hg > svgui
comparison layer/SpectrumLayer.h @ 1281:fc9d9f1103fa horizontal-scale
Provide linear horizontal scale in spectrum as well as log; fix bin positioning and colour scale property box updating; ensure proper background colour and visibility of peak lines
author | Chris Cannam |
---|---|
date | Thu, 03 May 2018 15:15:15 +0100 |
parents | b4cb11ca8233 |
children | d79e21855aef |
comparison
equal
deleted
inserted
replaced
1280:34394e8c2942 | 1281:fc9d9f1103fa |
---|---|
44 | 44 |
45 virtual bool getCrosshairExtents(LayerGeometryProvider *, QPainter &, QPoint cursorPos, | 45 virtual bool getCrosshairExtents(LayerGeometryProvider *, QPainter &, QPoint cursorPos, |
46 std::vector<QRect> &extents) const override; | 46 std::vector<QRect> &extents) const override; |
47 virtual void paintCrosshairs(LayerGeometryProvider *, QPainter &, QPoint) const override; | 47 virtual void paintCrosshairs(LayerGeometryProvider *, QPainter &, QPoint) const override; |
48 | 48 |
49 virtual int getHorizontalScaleHeight(LayerGeometryProvider *, QPainter &) const; | |
50 virtual void paintHorizontalScale(LayerGeometryProvider *, QPainter &, int xorigin) const; | |
51 | |
49 virtual QString getFeatureDescription(LayerGeometryProvider *v, QPoint &) const override; | 52 virtual QString getFeatureDescription(LayerGeometryProvider *v, QPoint &) const override; |
50 | 53 |
51 virtual void paint(LayerGeometryProvider *v, QPainter &paint, QRect rect) const override; | 54 virtual void paint(LayerGeometryProvider *v, QPainter &paint, QRect rect) const override; |
52 | 55 |
53 virtual VerticalPosition getPreferredFrameCountPosition() const override { | 56 virtual VerticalPosition getPreferredFrameCountPosition() const override { |
94 bool getShowPeaks() const { return m_showPeaks; } | 97 bool getShowPeaks() const { return m_showPeaks; } |
95 | 98 |
96 virtual void toXml(QTextStream &stream, QString indent = "", | 99 virtual void toXml(QTextStream &stream, QString indent = "", |
97 QString extraAttributes = "") const override; | 100 QString extraAttributes = "") const override; |
98 | 101 |
99 virtual double getFrequencyForX(const LayerGeometryProvider *, | 102 virtual double getFrequencyForX(const LayerGeometryProvider *, double x) |
100 double x) const override; | 103 const override; |
101 virtual double getXForFrequency(const LayerGeometryProvider *, | 104 virtual double getXForFrequency(const LayerGeometryProvider *, double freq) |
102 double freq) const override; | 105 const override; |
103 | 106 |
104 protected slots: | 107 protected slots: |
105 void preferenceChanged(PropertyContainer::PropertyName name); | 108 void preferenceChanged(PropertyContainer::PropertyName name); |
106 | 109 |
107 protected: | 110 protected: |