VTK
Public Types | Public Member Functions | Protected Member Functions
vtkQtChartMouseZoom Class Reference

The vtkQtChartMouseZoom class zooms the contents in response to mouse events. More...

#include <vtkQtChartMouseZoom.h>

Inheritance diagram for vtkQtChartMouseZoom:
Inheritance graph
[legend]
Collaboration diagram for vtkQtChartMouseZoom:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

The vtkQtChartMouseZoom class zooms the contents in response to mouse events.

Definition at line 41 of file vtkQtChartMouseZoom.h.


Member Enumeration Documentation

Enumerator:
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.


Constructor & Destructor Documentation

vtkQtChartMouseZoom::vtkQtChartMouseZoom ( QObject *  parent = 0)

Creates a new mouse zoom object.

Parameters:
parentThe parent object.
virtual vtkQtChartMouseZoom::~vtkQtChartMouseZoom ( ) [virtual]

Member Function Documentation

virtual void vtkQtChartMouseZoom::setMouseOwner ( bool  owns) [virtual]

Sets whether or not the function owns the mouse.

Parameters:
ownsTrue if the function owns the mouse.
See also:

Reimplemented from vtkQtChartMouseFunction.

virtual bool vtkQtChartMouseZoom::mousePressEvent ( QMouseEvent *  e,
vtkQtChartArea chart 
) [virtual]

Called to handle the mouse press event.

Parameters:
eEvent specific information.
chartThe chart area.
Returns:
True if the event was used.

Implements vtkQtChartMouseFunction.

virtual bool vtkQtChartMouseZoom::mouseMoveEvent ( QMouseEvent *  e,
vtkQtChartArea chart 
) [virtual]

Called to handle the mouse move event.

Parameters:
eEvent specific information.
chartThe chart area.
Returns:
True if the event was used.

Implements vtkQtChartMouseFunction.

virtual bool vtkQtChartMouseZoom::mouseReleaseEvent ( QMouseEvent *  e,
vtkQtChartArea chart 
) [virtual]

Called to handle the mouse release event.

Parameters:
eEvent specific information.
chartThe chart area.
Returns:
True if the event was used.

Implements vtkQtChartMouseFunction.

virtual bool vtkQtChartMouseZoom::mouseDoubleClickEvent ( QMouseEvent *  e,
vtkQtChartArea chart 
) [virtual]

Called to handle the double click event.

Parameters:
eEvent specific information.
chartThe chart area.
Returns:
True if the event was used.

Implements vtkQtChartMouseFunction.

virtual bool vtkQtChartMouseZoom::wheelEvent ( QWheelEvent *  e,
vtkQtChartArea chart 
) [virtual]

Called to handle the wheel event.

Parameters:
eEvent specific information.
chartThe chart area.
Returns:
True if the event was used.

Reimplemented from vtkQtChartMouseFunction.

ZoomFlags vtkQtChartMouseZoom::getFlags ( ) const [inline]

Gets the zoom flags used during interaction.

Returns:
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.

Parameters:
flagsThe zoom flags to use.

Definition at line 79 of file vtkQtChartMouseZoom.h.


The documentation for this class was generated from the following file: