QwtPlotPanner - QwtPlotPanner provides panning of a plot canvas.
Contents
Constructor & Destructor Documentation
QwtPlotPanner::QwtPlotPanner(QWidget*canvas)[explicit]
A panner for the canvas of a QwtPlot. The panner is enabled for all axes
Parameters:canvas Plot canvas to pan, also the parent object
Seealso:setAxisEnabled()Detailed Description
QwtPlotPanner provides panning of a plot canvas.
QwtPlotPanner is a panner for a plot canvas, 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
Seealso:QwtPlotZoomer, QwtPlotMagnifierMember Function Documentation
QBitmapQwtPlotPanner::contentsMask()const[protected],[virtual]
Calculate a mask from the border path of the canvas
Returns:
Mask as bitmap
Seealso:QwtPlotCanvas::borderPath()
Reimplemented from QwtPanner.
QPixmapQwtPlotPanner::grab()const[protected],[virtual]Returns:
Pixmap with the content of the canvas
Reimplemented from QwtPanner.
boolQwtPlotPanner::isAxisEnabled(intaxis)const
Test if an axis is enabled
Parameters:axis Axis, see QwtPlot::AxisReturns:
True, if the axis is enabled
Seealso:setAxisEnabled(), moveCanvas()voidQwtPlotPanner::moveCanvas(intdx,intdy)[protected],[virtual],[slot]
Adjust the enabled axes according to dx/dy
Parameters:dx Pixel offset in x direction
dy Pixel offset in y direction
Seealso:QwtPanner::panned()voidQwtPlotPanner::setAxisEnabled(intaxis,boolon)
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::Axison On/Off
Seealso:isAxisEnabled(), moveCanvas()Name
QwtPlotPanner - QwtPlotPanner provides panning of a plot canvas.
Synopsis
#include <qwt_plot_panner.h>
Inherits QwtPanner.
PublicMemberFunctionsQwtPlotPanner (QWidget *)
A panner for the canvas of a QwtPlot.
virtual ~QwtPlotPanner ()
Destructor.
QWidget * canvas ()
Return observed plot canvas.
const QWidget * canvas () const
Return Observed plot canvas.
QwtPlot * plot ()
Return plot widget, containing the observed plot canvas.
const QwtPlot * plot () const
Return plot widget, containing the observed plot canvas.
void setAxisEnabled (int axis, bool on)
En/Disable an axis.
bool isAxisEnabled (int axis) const
ProtectedSlots
virtual void moveCanvas (int dx, int dy)
ProtectedMemberFunctions
virtual QBitmap contentsMask () const
virtual QPixmap grab () const
AdditionalInheritedMembers