VTK
Public Slots | Signals | Public Member Functions
vtkQtChartMouseSelection Class Reference

The vtkQtChartMouseSelection class is used to select chart elements based on the current selection mode. More...

#include <vtkQtChartMouseSelection.h>

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

List of all members.

Public Slots

void setSelectionMode (const QString &mode)
 Sets the current selection mode.

Signals

void modeListChanged ()
 Emitted when the list of available modes changes.
void selectionModeChanged (const QString &mode)
 Emitted when the selection mode changes.

Public Member Functions

 vtkQtChartMouseSelection (QObject *parent=0)
 Creates a mouse selection object.
virtual ~vtkQtChartMouseSelection ()
Configuration Methods
virtual bool isCombinable () const
 Gets the name of current selection mode.
const QString & getSelectionMode () const
 Gets the name of current selection mode.
const QStringList & getModeList () const
 Gets the list of selection modes.
void addHandler (vtkQtChartMouseSelectionHandler *handler)
 Adds a selection handler to the list.
void insertHandler (int index, vtkQtChartMouseSelectionHandler *handler)
 Inserts a selection handler into the list.
void removeHandler (vtkQtChartMouseSelectionHandler *handler)
 Removes the given selection handler from the list.
Interaction Methods
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.

Detailed Description

The vtkQtChartMouseSelection class is used to select chart elements based on the current selection mode.

Definition at line 43 of file vtkQtChartMouseSelection.h.


Constructor & Destructor Documentation

vtkQtChartMouseSelection::vtkQtChartMouseSelection ( QObject *  parent = 0)

Creates a mouse selection object.

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

Member Function Documentation

virtual bool vtkQtChartMouseSelection::isCombinable ( ) const [inline, virtual]

Gets the name of current selection mode.

Returns:
The name of the current selection mode.

Reimplemented from vtkQtChartMouseFunction.

Definition at line 57 of file vtkQtChartMouseSelection.h.

const QString& vtkQtChartMouseSelection::getSelectionMode ( ) const

Gets the name of current selection mode.

Returns:
The name of the current selection mode.
const QStringList& vtkQtChartMouseSelection::getModeList ( ) const

Gets the list of selection modes.

Returns:
The list of selection modes.
void vtkQtChartMouseSelection::addHandler ( vtkQtChartMouseSelectionHandler handler)

Adds a selection handler to the list.

The selection mode list is rebuilt when a new handler is added.

Parameters:
handlerThe new selection handler.
void vtkQtChartMouseSelection::insertHandler ( int  index,
vtkQtChartMouseSelectionHandler handler 
)

Inserts a selection handler into the list.

Parameters:
indexWhere to insert the handler.
handlerThe new selection handler.
void vtkQtChartMouseSelection::removeHandler ( vtkQtChartMouseSelectionHandler handler)

Removes the given selection handler from the list.

Parameters:
handlerThe selection handler to remove.
virtual bool vtkQtChartMouseSelection::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 vtkQtChartMouseSelection::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 vtkQtChartMouseSelection::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 vtkQtChartMouseSelection::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.

void vtkQtChartMouseSelection::setSelectionMode ( const QString &  mode) [slot]

Sets the current selection mode.

Parameters:
modeThe name of the new selection mode.
void vtkQtChartMouseSelection::modeListChanged ( ) [signal]

Emitted when the list of available modes changes.

void vtkQtChartMouseSelection::selectionModeChanged ( const QString &  mode) [signal]

Emitted when the selection mode changes.

Parameters:
modeThe name of the new selection mode.

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