Struct that stores zoom states for all four axes.
More...
#include <qwt_plot_canvas_zoomer.h>
Struct that stores zoom states for all four axes.
◆ QwtPlotCanvasZoomState()
Constructor creating a zoom state with specified axis intervals.
- Parameters
-
| [in] | p | Plot widget associated with this zoom state |
| [in] | yLeft | Interval for the left Y axis |
| [in] | yRight | Interval for the right Y axis |
| [in] | xBottom | Interval for the bottom X axis |
| [in] | xTop | Interval for the top X axis |
◆ apply()
| void QwtPlotCanvasZoomState::apply |
( |
| ) |
const |
Apply this zoom state to the associated plot.
Sets all four axis scales to the intervals stored in this zoom state. Does nothing if the plot pointer is null.
◆ fromPlot()
Create a zoom state from the current axis ranges of a plot.
- Parameters
-
| [in] | p | Plot widget to capture axis ranges from |
- Returns
- QwtPlotCanvasZoomState containing current axis intervals
This static method captures the current scale divisions of all four axes from the given plot and stores them in a new zoom state object.
◆ isValid()
| bool QwtPlotCanvasZoomState::isValid |
( |
| ) |
const |
Check if this zoom state is valid.
- Returns
- true if the zoom state has an associated plot pointer
◆ operator!=()
Compare two zoom states for inequality.
- Parameters
-
| [in] | other | Another zoom state to compare with |
- Returns
- true if the states differ in plot or any axis interval
◆ operator==()
Compare two zoom states for equality.
- Parameters
-
| [in] | other | Another zoom state to compare with |
- Returns
- true if both states have the same plot and axis intervals
The documentation for this struct was generated from the following files:
- /home/runner/work/QWT/QWT/src/plot/qwt_plot_canvas_zoomer.h
- /home/runner/work/QWT/QWT/src/plot/qwt_plot_canvas_zoomer.cpp