mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-17 12:08:05 +01:00
Gainzoom (#556)
* gain plot: dont allow zoom, only zoom on main plot * fixed gain plot zooming * fixing panning for gainplots
This commit is contained in:
@@ -169,9 +169,16 @@ class SlsQt1DPlot : public QwtPlot {
|
||||
|
||||
QwtPlotShapeItem *roiBox{nullptr};
|
||||
|
||||
signals:
|
||||
void PlotZoomedSignal(const QRectF &);
|
||||
|
||||
public slots:
|
||||
void SetZoomX(const QRectF &rect);
|
||||
void UnZoom();
|
||||
void Update();
|
||||
|
||||
private slots:
|
||||
void GetPannedCoord(int, int);
|
||||
};
|
||||
|
||||
} // namespace sls
|
||||
|
||||
@@ -76,6 +76,13 @@ class SlsQt2DPlot : public QwtPlot {
|
||||
|
||||
public slots:
|
||||
void showSpectrogram(bool on);
|
||||
void SetZoom(const QRectF &rect);
|
||||
|
||||
private slots:
|
||||
void GetPannedCoord(int, int);
|
||||
|
||||
signals:
|
||||
void PlotZoomedSignal(const QRectF &);
|
||||
|
||||
private:
|
||||
void SetupZoom();
|
||||
|
||||
Reference in New Issue
Block a user