QwtPlotMagnifier provides zooming, by magnifying in steps.
More...
#include <qwt_plot_magnifier.h>
List of all members.
Detailed Description
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.
- See also:
- QwtPlotZoomer, QwtPlotPanner, QwtPlot
Constructor & Destructor Documentation
QwtPlotMagnifier::QwtPlotMagnifier |
( |
QwtPlotCanvas * |
canvas | ) |
[explicit] |
Constructor
- Parameters:
-
canvas | Plot canvas to be magnified |
QwtPlotMagnifier::~QwtPlotMagnifier |
( |
| ) |
[virtual] |
Member Function Documentation
Return observed plot canvas.
Return Observed plot canvas.
bool QwtMagnifier::eventFilter |
( |
QObject * |
o, |
|
|
QEvent * |
e |
|
) |
| [virtual, inherited] |
void QwtMagnifier::getMouseButton |
( |
int & |
button, |
|
|
int & |
buttonState |
|
) |
| const [inherited] |
void QwtMagnifier::getZoomInKey |
( |
int & |
key, |
|
|
int & |
modifiers |
|
) |
| const [inherited] |
void QwtMagnifier::getZoomOutKey |
( |
int & |
key, |
|
|
int & |
modifiers |
|
) |
| const [inherited] |
bool QwtPlotMagnifier::isAxisEnabled |
( |
int |
axis | ) |
const |
Test if an axis is enabled
- Parameters:
-
- Returns:
- True, if the axis is enabled
- See also:
- setAxisEnabled()
bool QwtMagnifier::isEnabled |
( |
| ) |
const [inherited] |
double QwtMagnifier::keyFactor |
( |
| ) |
const [inherited] |
double QwtMagnifier::mouseFactor |
( |
| ) |
const [inherited] |
QWidget * QwtMagnifier::parentWidget |
( |
| ) |
[inherited] |
- Returns:
- Parent widget, where the rescaling happens
const QWidget * QwtMagnifier::parentWidget |
( |
| ) |
const [inherited] |
- Returns:
- Parent widget, where the rescaling happens
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
- Parameters:
-
factor | A value < 1.0 zooms in, a value > 1.0 zooms out. |
Implements 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.
- Parameters:
-
- See also:
- isAxisEnabled()
void QwtMagnifier::setEnabled |
( |
bool |
on | ) |
[inherited] |
En/disable the magnifier.
When enabled is true an event filter is installed for the observed widget, otherwise the event filter is removed.
- Parameters:
-
- See also:
- isEnabled(), eventFilter()
void QwtMagnifier::setKeyFactor |
( |
double |
factor | ) |
[inherited] |
void QwtMagnifier::setMouseButton |
( |
int |
button, |
|
|
int |
buttonState = Qt::NoButton |
|
) |
| [inherited] |
Assign the mouse button, that is used for zooming in/out. The default value is Qt::RightButton.
- Parameters:
-
button | Button |
buttonState | Button state |
- See also:
- getMouseButton()
void QwtMagnifier::setMouseFactor |
( |
double |
factor | ) |
[inherited] |
void QwtMagnifier::setWheelButtonState |
( |
int |
buttonState | ) |
[inherited] |
Assign a mandatory button state for zooming in/out using the wheel. The default button state is Qt::NoButton.
- Parameters:
-
- See also:
- wheelButtonState()
void QwtMagnifier::setWheelFactor |
( |
double |
factor | ) |
[inherited] |
void QwtMagnifier::setZoomInKey |
( |
int |
key, |
|
|
int |
modifiers |
|
) |
| [inherited] |
Assign the key, that is used for zooming in. The default combination is Qt::Key_Plus + Qt::NoModifier.
- Parameters:
-
- See also:
- getZoomInKey(), setZoomOutKey()
void QwtMagnifier::setZoomOutKey |
( |
int |
key, |
|
|
int |
modifiers |
|
) |
| [inherited] |
Assign the key, that is used for zooming out. The default combination is Qt::Key_Minus + Qt::NoModifier.
- Parameters:
-
- See also:
- getZoomOutKey(), setZoomOutKey()
int QwtMagnifier::wheelButtonState |
( |
| ) |
const [inherited] |
double QwtMagnifier::wheelFactor |
( |
| ) |
const [inherited] |
void QwtMagnifier::widgetKeyPressEvent |
( |
QKeyEvent * |
ke | ) |
[protected, virtual, inherited] |
void QwtMagnifier::widgetKeyReleaseEvent |
( |
QKeyEvent * |
| ) |
[protected, virtual, inherited] |
void QwtMagnifier::widgetMouseMoveEvent |
( |
QMouseEvent * |
me | ) |
[protected, virtual, inherited] |
void QwtMagnifier::widgetMousePressEvent |
( |
QMouseEvent * |
me | ) |
[protected, virtual, inherited] |
void QwtMagnifier::widgetMouseReleaseEvent |
( |
QMouseEvent * |
| ) |
[protected, virtual, inherited] |
void QwtMagnifier::widgetWheelEvent |
( |
QWheelEvent * |
we | ) |
[protected, virtual, inherited] |
Handle a wheel event for the observed widget.
- Parameters:
-
- See also:
- eventFilter()