Eneboo - Documentación para desarrolladores
Clases | Métodos públicos | Slots protegidos
Referencia de la Clase QwtPlotPanner

QwtPlotPanner provides panning of a plot canvas. Más...

#include <qwt_plot_panner.h>

Diagrama de herencias de QwtPlotPanner
QwtPanner QWidget QObject QPaintDevice QObject QPaintDevice Qt Qt Qt Qt

Lista de todos los miembros.

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)

Descripción detallada

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.

Nota:
The axes are not updated, while dragging the canvas
Ver también:
QwtPlotZoomer, QwtPlotMagnifier

Documentación del constructor y destructor

QwtPlotPanner::QwtPlotPanner ( QwtPlotCanvas *  canvas) [explicit]

Create a plot panner.

The panner is enabled for all axes

Parámetros:
canvasPlot canvas to pan, also the parent object
Ver también:
setAxisEnabled
QwtPlotPanner::~QwtPlotPanner ( ) [virtual]

Destructor.


Documentación de las funciones miembro

QwtPlotCanvas * QwtPlotPanner::canvas ( )

Return observed plot canvas.

const QwtPlotCanvas * QwtPlotPanner::canvas ( ) const

Return Observed plot canvas.

bool QwtPlotPanner::isAxisEnabled ( int  axis) const

Test if an axis is enabled

Parámetros:
axisAxis, see QwtPlot::Axis
Devuelve:
True, if the axis is enabled
Ver también:
setAxisEnabled, moveCanvas
void QwtPlotPanner::moveCanvas ( int  dx,
int  dy 
) [protected, virtual, slot]

Adjust the enabled axes according to dx/dy

Parámetros:
dxPixel offset in x direction
dyPixel offset in y direction
Ver también:
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.

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

En/Disable an axis.

Axes that are enabled will be synchronized to the result of panning. All other axes will remain unchanged.

Parámetros:
axisAxis, see QwtPlot::Axis
onOn/Off
Ver también:
isAxisEnabled, moveCanvas

La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'