Mercurial > hg > svgui
comparison layer/SpectrumLayer.h @ 978:64c2b3a4435a 3.0-integration
Merge from branch osx-retina
author | Chris Cannam |
---|---|
date | Fri, 26 Jun 2015 14:10:40 +0100 |
parents | 4fe7a09be0fe |
children | 366ffdf719cd |
comparison
equal
deleted
inserted
replaced
977:f40ccbf228c2 | 978:64c2b3a4435a |
---|---|
37 ~SpectrumLayer(); | 37 ~SpectrumLayer(); |
38 | 38 |
39 void setModel(DenseTimeValueModel *model); | 39 void setModel(DenseTimeValueModel *model); |
40 virtual const Model *getModel() const { return m_originModel; } | 40 virtual const Model *getModel() const { return m_originModel; } |
41 | 41 |
42 virtual bool getCrosshairExtents(View *, QPainter &, QPoint cursorPos, | 42 virtual bool getCrosshairExtents(LayerGeometryProvider *, QPainter &, QPoint cursorPos, |
43 std::vector<QRect> &extents) const; | 43 std::vector<QRect> &extents) const; |
44 virtual void paintCrosshairs(View *, QPainter &, QPoint) const; | 44 virtual void paintCrosshairs(LayerGeometryProvider *, QPainter &, QPoint) const; |
45 | 45 |
46 virtual QString getFeatureDescription(View *v, QPoint &) const; | 46 virtual QString getFeatureDescription(LayerGeometryProvider *v, QPoint &) const; |
47 | 47 |
48 virtual void paint(View *v, QPainter &paint, QRect rect) const; | 48 virtual void paint(LayerGeometryProvider *v, QPainter &paint, QRect rect) const; |
49 | 49 |
50 virtual VerticalPosition getPreferredFrameCountPosition() const { | 50 virtual VerticalPosition getPreferredFrameCountPosition() const { |
51 return PositionTop; | 51 return PositionTop; |
52 } | 52 } |
53 | 53 |
65 virtual void setProperties(const QXmlAttributes &); | 65 virtual void setProperties(const QXmlAttributes &); |
66 | 66 |
67 virtual bool getValueExtents(double &min, double &max, | 67 virtual bool getValueExtents(double &min, double &max, |
68 bool &logarithmic, QString &unit) const; | 68 bool &logarithmic, QString &unit) const; |
69 | 69 |
70 virtual bool getXScaleValue(const View *v, int x, | 70 virtual bool getXScaleValue(const LayerGeometryProvider *v, int x, |
71 double &value, QString &unit) const; | 71 double &value, QString &unit) const; |
72 | 72 |
73 virtual bool getYScaleValue(const View *, int y, | 73 virtual bool getYScaleValue(const LayerGeometryProvider *, int y, |
74 double &value, QString &unit) const; | 74 double &value, QString &unit) const; |
75 | 75 |
76 virtual bool getYScaleDifference(const View *, int y0, int y1, | 76 virtual bool getYScaleDifference(const LayerGeometryProvider *, int y0, int y1, |
77 double &diff, QString &unit) const; | 77 double &diff, QString &unit) const; |
78 | 78 |
79 virtual bool isLayerScrollable(const View *) const { return false; } | 79 virtual bool isLayerScrollable(const LayerGeometryProvider *) const { return false; } |
80 | 80 |
81 void setChannel(int); | 81 void setChannel(int); |
82 int getChannel() const { return m_channel; } | 82 int getChannel() const { return m_channel; } |
83 | 83 |
84 void setWindowSize(int); | 84 void setWindowSize(int); |
91 WindowType getWindowType() const { return m_windowType; } | 91 WindowType getWindowType() const { return m_windowType; } |
92 | 92 |
93 void setShowPeaks(bool); | 93 void setShowPeaks(bool); |
94 bool getShowPeaks() const { return m_showPeaks; } | 94 bool getShowPeaks() const { return m_showPeaks; } |
95 | 95 |
96 virtual int getVerticalScaleWidth(View *, bool, QPainter &) const { return 0; } | 96 virtual int getVerticalScaleWidth(LayerGeometryProvider *, bool, QPainter &) const { return 0; } |
97 | 97 |
98 virtual void toXml(QTextStream &stream, QString indent = "", | 98 virtual void toXml(QTextStream &stream, QString indent = "", |
99 QString extraAttributes = "") const; | 99 QString extraAttributes = "") const; |
100 | 100 |
101 protected slots: | 101 protected slots: |