Mercurial > hg > svgui
comparison layer/SliceLayer.h @ 1395:32bbb86094c3
Merge from branch spectrogramparam
author | Chris Cannam |
---|---|
date | Wed, 14 Nov 2018 14:23:17 +0000 |
parents | 3c99083a4d83 |
children | decb7741d036 |
comparison
equal
deleted
inserted
replaced
1380:78eecb19e688 | 1395:32bbb86094c3 |
---|---|
71 virtual int getVerticalZoomSteps(int &defaultStep) const; | 71 virtual int getVerticalZoomSteps(int &defaultStep) const; |
72 virtual int getCurrentVerticalZoomStep() const; | 72 virtual int getCurrentVerticalZoomStep() const; |
73 virtual void setVerticalZoomStep(int); | 73 virtual void setVerticalZoomStep(int); |
74 virtual RangeMapper *getNewVerticalZoomRangeMapper() const; | 74 virtual RangeMapper *getNewVerticalZoomRangeMapper() const; |
75 | 75 |
76 virtual bool hasTimeXAxis() const { return false; } | 76 virtual bool hasTimeXAxis() const override { return false; } |
77 | |
78 virtual void zoomToRegion(const LayerGeometryProvider *, QRect) override; | |
77 | 79 |
78 virtual bool isLayerScrollable(const LayerGeometryProvider *) const { return false; } | 80 virtual bool isLayerScrollable(const LayerGeometryProvider *) const { return false; } |
79 | 81 |
80 enum EnergyScale { LinearScale, MeterScale, dBScale, AbsoluteScale }; | 82 enum EnergyScale { LinearScale, MeterScale, dBScale, AbsoluteScale }; |
81 | 83 |
117 public slots: | 119 public slots: |
118 void sliceableModelReplaced(const Model *, const Model *); | 120 void sliceableModelReplaced(const Model *, const Model *); |
119 void modelAboutToBeDeleted(Model *); | 121 void modelAboutToBeDeleted(Model *); |
120 | 122 |
121 protected: | 123 protected: |
124 /// Convert a (possibly non-integral) bin into x-coord. May be overridden | |
122 virtual double getXForBin(const LayerGeometryProvider *, double bin) const; | 125 virtual double getXForBin(const LayerGeometryProvider *, double bin) const; |
126 | |
127 /// Convert an x-coord into (possibly non-integral) bin. May be overridden | |
123 virtual double getBinForX(const LayerGeometryProvider *, double x) const; | 128 virtual double getBinForX(const LayerGeometryProvider *, double x) const; |
129 | |
130 /// Convert a point such as a bin number into x-coord, given max & | |
131 /// min. For use by getXForBin etc | |
132 double getXForScalePoint(const LayerGeometryProvider *, | |
133 double p, double pmin, double pmax) const; | |
134 | |
135 /// Convert an x-coord into a point such as a bin number, given | |
136 /// max & min. For use by getBinForX etc | |
137 double getScalePointForX(const LayerGeometryProvider *, | |
138 double x, double pmin, double pmax) const; | |
124 | 139 |
125 virtual double getYForValue(const LayerGeometryProvider *v, double value, double &norm) const; | 140 virtual double getYForValue(const LayerGeometryProvider *v, double value, double &norm) const; |
126 virtual double getValueForY(const LayerGeometryProvider *v, double y) const; | 141 virtual double getValueForY(const LayerGeometryProvider *v, double y) const; |
127 | 142 |
128 virtual QString getFeatureDescriptionAux(LayerGeometryProvider *v, QPoint &, | 143 virtual QString getFeatureDescriptionAux(LayerGeometryProvider *v, QPoint &, |