|
QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
|
Struct that stores zoom states for all four axes 更多...
#include <qwt_plot_canvas_zoomer.h>
Public 成员函数 | |
| QwtPlotCanvasZoomState () | |
| Default constructor creating an invalid zoom state | |
| QwtPlotCanvasZoomState (QwtPlot *p, const QwtInterval &yLeft, const QwtInterval &yRight, const QwtInterval &xBottom, const QwtInterval &xTop) | |
| Constructor creating a zoom state with specified axis intervals | |
| void | apply () const |
| Apply this zoom state to the associated plot | |
| bool | operator== (const QwtPlotCanvasZoomState &other) const |
| Compare two zoom states for equality | |
| bool | operator!= (const QwtPlotCanvasZoomState &other) const |
| Compare two zoom states for inequality | |
| bool | isValid () const |
| Check if this zoom state is valid | |
静态 Public 成员函数 | |
| static QwtPlotCanvasZoomState | fromPlot (QwtPlot *plot) |
| Create a zoom state from the current axis ranges of a plot | |
Public 属性 | |
| QPointer< QwtPlot > | plot |
| QwtInterval | axisInterval [QwtAxis::AxisPositions] |
Struct that stores zoom states for all four axes
| QwtPlotCanvasZoomState::QwtPlotCanvasZoomState | ( | QwtPlot * | p, |
| const QwtInterval & | yLeft, | ||
| const QwtInterval & | yRight, | ||
| const QwtInterval & | xBottom, | ||
| const QwtInterval & | xTop | ||
| ) |
Constructor creating a zoom state with specified axis intervals
| [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 |
| 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.
|
static |
Create a zoom state from the current axis ranges of a plot
| [in] | p | Plot widget to capture axis ranges from |
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.
| bool QwtPlotCanvasZoomState::isValid | ( | ) | const |
Check if this zoom state is valid
| bool QwtPlotCanvasZoomState::operator!= | ( | const QwtPlotCanvasZoomState & | other | ) | const |
Compare two zoom states for inequality
| [in] | other | Another zoom state to compare with |
| bool QwtPlotCanvasZoomState::operator== | ( | const QwtPlotCanvasZoomState & | other | ) | const |
Compare two zoom states for equality
| [in] | other | Another zoom state to compare with |