vtkQtChartMouseZoom Class Reference

#include <vtkQtChartMouseZoom.h>

Inheritance diagram for vtkQtChartMouseZoom:

Inheritance graph
[legend]
Collaboration diagram for vtkQtChartMouseZoom:

Collaboration graph
[legend]

List of all members.


Detailed Description

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

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.

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:
parent The 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:
owns True 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:
e Event specific information.
chart The 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:
e Event specific information.
chart The 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:
e Event specific information.
chart The 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:
e Event specific information.
chart The 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:
e Event specific information.
chart The 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:
flags The zoom flags to use.

Definition at line 79 of file vtkQtChartMouseZoom.h.


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

Generated on Mon Sep 27 18:44:29 2010 for VTK by  doxygen 1.5.6