Classes | Public Member Functions | Protected Member Functions | Private Attributes
QwtPlotMagnifier Class Reference

QwtPlotMagnifier provides zooming, by magnifying in steps. More...

#include <qwt_plot_magnifier.h>

Inheritance diagram for QwtPlotMagnifier:
Inheritance graph
[legend]

List of all members.

Classes

class  PrivateData

Public Member Functions

QWidget * canvas ()
 Return observed plot canvas.
const QWidget * canvas () const
 Return Observed plot canvas.
bool isAxisEnabled (int axis) const
QwtPlotplot ()
 Return plot widget, containing the observed plot canvas.
const QwtPlotplot () const
 Return plot widget, containing the observed plot canvas.
 QwtPlotMagnifier (QWidget *)
void setAxisEnabled (int axis, bool on)
 En/Disable an axis.
virtual ~QwtPlotMagnifier ()
 Destructor.

Protected Member Functions

virtual void rescale (double factor)

Private Attributes

PrivateDatad_data

Detailed Description

QwtPlotMagnifier provides zooming, by magnifying in steps.

Using QwtPlotMagnifier a plot can be zoomed in/out in steps using keys, the mouse wheel or moving a mouse button in vertical direction.

Together with QwtPlotZoomer and QwtPlotPanner it is possible to implement individual and powerful navigation of the plot canvas.

See also:
QwtPlotZoomer, QwtPlotPanner, QwtPlot

Definition at line 29 of file qwt_plot_magnifier.h.


Constructor & Destructor Documentation

QwtPlotMagnifier::QwtPlotMagnifier ( QWidget *  canvas) [explicit]

Constructor

Parameters:
canvasPlot canvas to be magnified

Definition at line 30 of file qwt_plot_magnifier.cpp.

Destructor.

Definition at line 37 of file qwt_plot_magnifier.cpp.


Member Function Documentation

QWidget * QwtPlotMagnifier::canvas ( )

Return observed plot canvas.

Definition at line 76 of file qwt_plot_magnifier.cpp.

const QWidget * QwtPlotMagnifier::canvas ( ) const

Return Observed plot canvas.

Definition at line 82 of file qwt_plot_magnifier.cpp.

bool QwtPlotMagnifier::isAxisEnabled ( int  axis) const

Test if an axis is enabled

Parameters:
axisAxis, see QwtPlot::Axis
Returns:
True, if the axis is enabled
See also:
setAxisEnabled()

Definition at line 67 of file qwt_plot_magnifier.cpp.

Return plot widget, containing the observed plot canvas.

Definition at line 88 of file qwt_plot_magnifier.cpp.

const QwtPlot * QwtPlotMagnifier::plot ( ) const

Return plot widget, containing the observed plot canvas.

Definition at line 98 of file qwt_plot_magnifier.cpp.

void QwtPlotMagnifier::rescale ( double  factor) [protected, virtual]

Zoom in/out the axes scales

Parameters:
factorA value < 1.0 zooms in, a value > 1.0 zooms out.

Implements QwtMagnifier.

Reimplemented in PlotMagnifier.

Definition at line 111 of file qwt_plot_magnifier.cpp.

void QwtPlotMagnifier::setAxisEnabled ( int  axis,
bool  on 
)

En/Disable an axis.

Only Axes that are enabled will be zoomed. All other axes will remain unchanged.

Parameters:
axisAxis, see QwtPlot::Axis
onOn/Off
See also:
isAxisEnabled()

Definition at line 53 of file qwt_plot_magnifier.cpp.


Member Data Documentation

Reimplemented from QwtMagnifier.

Definition at line 50 of file qwt_plot_magnifier.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Fri Sep 1 2017 02:41:58