#include <vtkQtChartMouseSelection.h>
Definition at line 43 of file vtkQtChartMouseSelection.h.
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. |
vtkQtChartMouseSelection::vtkQtChartMouseSelection | ( | QObject * | parent = 0 |
) |
Creates a mouse selection object.
parent | The parent object. |
virtual vtkQtChartMouseSelection::~vtkQtChartMouseSelection | ( | ) | [virtual] |
virtual bool vtkQtChartMouseSelection::isCombinable | ( | ) | const [inline, virtual] |
Gets the name of 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.
const QStringList& vtkQtChartMouseSelection::getModeList | ( | ) | const |
Gets 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.
handler | The new selection handler. |
void vtkQtChartMouseSelection::insertHandler | ( | int | index, | |
vtkQtChartMouseSelectionHandler * | handler | |||
) |
Inserts a selection handler into the list.
index | Where to insert the handler. | |
handler | The new selection handler. |
void vtkQtChartMouseSelection::removeHandler | ( | vtkQtChartMouseSelectionHandler * | handler | ) |
Removes the given selection handler from the list.
handler | The selection handler to remove. |
virtual bool vtkQtChartMouseSelection::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 vtkQtChartMouseSelection::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 vtkQtChartMouseSelection::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 vtkQtChartMouseSelection::mouseDoubleClickEvent | ( | QMouseEvent * | e, | |
vtkQtChartArea * | chart | |||
) | [virtual] |
Called to handle the double click event.
e | Event specific information. | |
chart | The chart area. |
Implements vtkQtChartMouseFunction.
void vtkQtChartMouseSelection::setSelectionMode | ( | const QString & | mode | ) | [slot] |
Sets the current selection mode.
mode | The 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.
mode | The name of the new selection mode. |