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

QwtPlotMagnifier provides zooming, by magnifying in steps. Más...

#include <qwt_plot_magnifier.h>

Diagrama de herencias de QwtPlotMagnifier
QwtMagnifier QObject Qt Qt

Lista de todos los miembros.

Clases

class  PrivateData

Métodos públicos

 QwtPlotMagnifier (QwtPlotCanvas *)
virtual ~QwtPlotMagnifier ()
 Destructor.
void setAxisEnabled (int axis, bool on)
 En/Disable an axis.
bool isAxisEnabled (int axis) const
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.

Métodos protegidos

virtual void rescale (double factor)

Descripción detallada

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.

Ver también:
QwtPlotZoomer, QwtPlotPanner, QwtPlot

Documentación del constructor y destructor

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

Constructor

Parámetros:
canvasPlot canvas to be magnified
QwtPlotMagnifier::~QwtPlotMagnifier ( ) [virtual]

Destructor.


Documentación de las funciones miembro

QwtPlotCanvas * QwtPlotMagnifier::canvas ( )

Return observed plot canvas.

const QwtPlotCanvas * QwtPlotMagnifier::canvas ( ) const

Return Observed plot canvas.

bool QwtPlotMagnifier::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
QwtPlot * QwtPlotMagnifier::plot ( )

Return plot widget, containing the observed plot canvas.

const QwtPlot * QwtPlotMagnifier::plot ( ) const

Return plot widget, containing the observed plot canvas.

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

Zoom in/out the axes scales

Parámetros:
factorA value < 1.0 zooms in, a value > 1.0 zooms out.

Implementa QwtMagnifier.

void QwtPlotMagnifier::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

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'