Mercurial > hg > svgui
comparison layer/SliceLayer.h @ 1389:1eb560b363e7 spectrogramparam
Make "zoom to region" work sensibly for slice/spectrum layers; ensure that min/max bin are remapped properly when changing fft size
author | Chris Cannam |
---|---|
date | Tue, 13 Nov 2018 14:06:48 +0000 |
parents | fc3d89f88690 |
children | 3c99083a4d83 |
comparison
equal
deleted
inserted
replaced
1388:81dda64a7edc | 1389:1eb560b363e7 |
---|---|
73 virtual int getVerticalZoomSteps(int &defaultStep) const; | 73 virtual int getVerticalZoomSteps(int &defaultStep) const; |
74 virtual int getCurrentVerticalZoomStep() const; | 74 virtual int getCurrentVerticalZoomStep() const; |
75 virtual void setVerticalZoomStep(int); | 75 virtual void setVerticalZoomStep(int); |
76 virtual RangeMapper *getNewVerticalZoomRangeMapper() const; | 76 virtual RangeMapper *getNewVerticalZoomRangeMapper() const; |
77 | 77 |
78 virtual bool hasTimeXAxis() const { return false; } | 78 virtual bool hasTimeXAxis() const override { return false; } |
79 | |
80 virtual void zoomToRegion(const LayerGeometryProvider *, QRect) override; | |
79 | 81 |
80 virtual bool isLayerScrollable(const LayerGeometryProvider *) const { return false; } | 82 virtual bool isLayerScrollable(const LayerGeometryProvider *) const { return false; } |
81 | 83 |
82 enum EnergyScale { LinearScale, MeterScale, dBScale, AbsoluteScale }; | 84 enum EnergyScale { LinearScale, MeterScale, dBScale, AbsoluteScale }; |
83 | 85 |