|
Eneboo - Documentación para desarrolladores
|
QwtPlotPanner provides panning of a plot canvas. Más...
#include <qwt_plot_panner.h>
Clases | |
| class | PrivateData |
Métodos públicos | |
| QwtPlotPanner (QwtPlotCanvas *) | |
| Create a plot panner. | |
| virtual | ~QwtPlotPanner () |
| Destructor. | |
| QwtPlotCanvas * | canvas () |
| Return observed plot canvas. | |
| const QwtPlotCanvas * | 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 |
Slots protegidos | |
| virtual void | moveCanvas (int dx, int dy) |
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.
| QwtPlotPanner::QwtPlotPanner | ( | QwtPlotCanvas * | canvas | ) | [explicit] |
Create a plot panner.
The panner is enabled for all axes
| canvas | Plot canvas to pan, also the parent object |
| QwtPlotPanner::~QwtPlotPanner | ( | ) | [virtual] |
Destructor.
| QwtPlotCanvas * QwtPlotPanner::canvas | ( | ) |
Return observed plot canvas.
| const QwtPlotCanvas * QwtPlotPanner::canvas | ( | ) | const |
Return Observed plot canvas.
Test if an axis is enabled
| axis | Axis, see QwtPlot::Axis |
Adjust the enabled axes according to dx/dy
| dx | Pixel offset in x direction |
| dy | Pixel offset in y direction |
| 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.
| axis | Axis, see QwtPlot::Axis |
| on | On/Off |
1.7.4