#include <vtkQtChartMouseZoom.h>
Definition at line 41 of file vtkQtChartMouseZoom.h.
Public Types | |
enum | ZoomFlags { ZoomBoth, ZoomXOnly, ZoomYOnly } |
Public Member Functions | |
vtkQtChartMouseZoom (QObject *parent=0) | |
Creates a new mouse zoom object. | |
virtual | ~vtkQtChartMouseZoom () |
ZoomFlags | getFlags () const |
Gets the zoom flags used during interaction. | |
vtkQtChartMouseFunction Methods | |
virtual void | setMouseOwner (bool owns) |
Sets whether or not the function owns the mouse. | |
virtual bool | mousePressEvent (QMouseEvent *e, vtkQtChartArea *chart) |
Called to handle the mouse press event. | |
virtual bool | mouseMoveEvent (QMouseEvent *e, vtkQtChartArea *chart) |
Called to handle the mouse move event. | |
virtual bool | mouseReleaseEvent (QMouseEvent *e, vtkQtChartArea *chart) |
Called to handle the mouse release event. | |
virtual bool | mouseDoubleClickEvent (QMouseEvent *e, vtkQtChartArea *chart) |
Called to handle the double click event. | |
virtual bool | wheelEvent (QWheelEvent *e, vtkQtChartArea *chart) |
Called to handle the wheel event. | |
Protected Member Functions | |
void | setFlags (ZoomFlags flags) |
Sets the zoom flags to use during interaction. |
ZoomBoth | Zoom in both directions. |
ZoomXOnly | Zoom only in the x-direction. |
ZoomYOnly | Zoom only in the y-direction. |
Definition at line 44 of file vtkQtChartMouseZoom.h.
vtkQtChartMouseZoom::vtkQtChartMouseZoom | ( | QObject * | parent = 0 |
) |
Creates a new mouse zoom object.
parent | The parent object. |
virtual vtkQtChartMouseZoom::~vtkQtChartMouseZoom | ( | ) | [virtual] |
virtual void vtkQtChartMouseZoom::setMouseOwner | ( | bool | owns | ) | [virtual] |
Sets whether or not the function owns the mouse.
owns | True if the function owns the mouse. |
Reimplemented from vtkQtChartMouseFunction.
virtual bool vtkQtChartMouseZoom::mousePressEvent | ( | QMouseEvent * | e, | |
vtkQtChartArea * | chart | |||
) | [virtual] |
Called to handle the mouse press event.
e | Event specific information. | |
chart | The chart area. |
Implements vtkQtChartMouseFunction.
virtual bool vtkQtChartMouseZoom::mouseMoveEvent | ( | QMouseEvent * | e, | |
vtkQtChartArea * | chart | |||
) | [virtual] |
Called to handle the mouse move event.
e | Event specific information. | |
chart | The chart area. |
Implements vtkQtChartMouseFunction.
virtual bool vtkQtChartMouseZoom::mouseReleaseEvent | ( | QMouseEvent * | e, | |
vtkQtChartArea * | chart | |||
) | [virtual] |
Called to handle the mouse release event.
e | Event specific information. | |
chart | The chart area. |
Implements vtkQtChartMouseFunction.
virtual bool vtkQtChartMouseZoom::mouseDoubleClickEvent | ( | QMouseEvent * | e, | |
vtkQtChartArea * | chart | |||
) | [virtual] |
Called to handle the double click event.
e | Event specific information. | |
chart | The chart area. |
Implements vtkQtChartMouseFunction.
virtual bool vtkQtChartMouseZoom::wheelEvent | ( | QWheelEvent * | e, | |
vtkQtChartArea * | chart | |||
) | [virtual] |
Called to handle the wheel event.
e | Event specific information. | |
chart | The chart area. |
Reimplemented from vtkQtChartMouseFunction.
ZoomFlags vtkQtChartMouseZoom::getFlags | ( | ) | const [inline] |
Gets the zoom flags used during interaction.
Definition at line 73 of file vtkQtChartMouseZoom.h.
void vtkQtChartMouseZoom::setFlags | ( | ZoomFlags | flags | ) | [inline, protected] |
Sets the zoom flags to use during interaction.
flags | The zoom flags to use. |
Definition at line 79 of file vtkQtChartMouseZoom.h.