Ubuntu Manpages

QwtPlotPanner

QwtPlotPanner provides panning of a plot canvas.

#include <qwt_plot_panner.h>

Inherits QwtPanner.


QwtPlotPanner (QwtPlotCanvas *)
virtual ~QwtPlotPanner ()
QwtPlotCanvas * canvas ()
const QwtPlotCanvas * canvas () const
QwtPlot * plot ()
const QwtPlot * plot () const
void setAxisEnabled (int axis, bool on)
bool isAxisEnabled (int axis) const


virtual void moveCanvas (int dx, int dy)


virtual QBitmap contentsMask () const

QwtPlotPanner provides panning of a plot canvas.

QwtPlotPanner is a panner for a QwtPlotCanvas, that adjusts the scales of the axes after dropping the canvas on its new position.

Together with QwtPlotZoomer and QwtPlotMagnifier powerful ways of navigating on a QwtPlot widget can be implemented easily.

Note:

The axes are not updated, while dragging the canvas

See also:

QwtPlotZoomer, QwtPlotMagnifier

Create a plot panner. The panner is enabled for all axes

Parameters:

canvas Plot canvas to pan, also the parent object

See also:

setAxisEnabled()

Destructor.

QwtPlotCanvas * QwtPlotPanner::canvas ()

Return observed plot canvas.

const QwtPlotCanvas * QwtPlotPanner::canvas () const

Return Observed plot canvas.

See also:

QwtPlotCanvas::borderMask()

Reimplemented from QwtPanner.

Parameters:

axis Axis, see QwtPlot::Axis

Returns:

True, if the axis is enabled

See also:

setAxisEnabled(), moveCanvas()

Parameters:

dx Pixel offset in x direction
dy Pixel offset in y direction

See also:

QwtPanner::panned()

const QwtPlot * QwtPlotPanner::plot () const

Return plot widget, containing the observed plot canvas.

QwtPlot * QwtPlotPanner::plot ()

Return plot widget, containing the observed plot canvas.

En/Disable an axis. Axes that are enabled will be synchronized to the result of panning. All other axes will remain unchanged.

Parameters:

axis Axis, see QwtPlot::Axis
on On/Off

See also:

isAxisEnabled(), moveCanvas()

Generated automatically by Doxygen for Qwt User's Guide from the source code.