QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
QwtPlotCanvasZoomState Struct Reference

Struct that stores zoom states for all four axes . More...

#include <qwt_plot_canvas_zoomer.h>

Public Member Functions

 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.
 

Static Public Member Functions

static QwtPlotCanvasZoomState fromPlot (QwtPlot *plot)
 Create a zoom state from the current axis ranges of a plot.
 

Public Attributes

QPointer< QwtPlotplot
 
QwtInterval axisInterval [QwtAxis::AxisPositions]
 

Detailed Description

Struct that stores zoom states for all four axes

.

Constructor & Destructor Documentation

◆ QwtPlotCanvasZoomState() [1/2]

QwtPlotCanvasZoomState::QwtPlotCanvasZoomState ( )

Default constructor creating an invalid zoom state .

◆ QwtPlotCanvasZoomState() [2/2]

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.

Member Function Documentation

◆ apply()

void QwtPlotCanvasZoomState::apply ( ) const

Apply this zoom state to the associated plot.

◆ fromPlot()

QwtPlotCanvasZoomState QwtPlotCanvasZoomState::fromPlot ( QwtPlot p)
static

Create a zoom state from the current axis ranges of a plot.

◆ isValid()

bool QwtPlotCanvasZoomState::isValid ( ) const

Check if this zoom state is valid.

◆ operator!=()

bool QwtPlotCanvasZoomState::operator!= ( const QwtPlotCanvasZoomState other) const

Compare two zoom states for inequality.

◆ operator==()

bool QwtPlotCanvasZoomState::operator== ( const QwtPlotCanvasZoomState other) const

Compare two zoom states for equality.


The documentation for this struct was generated from the following files: