The vtkQtChartMouseSelection class is used to select chart elements based on the current selection mode.
More...
#include <vtkQtChartMouseSelection.h>
Public Slots |
void | setSelectionMode (const QString &mode) |
| Sets the current selection mode.
|
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
-
virtual vtkQtChartMouseSelection::~vtkQtChartMouseSelection |
( |
| ) |
|
|
virtual |
Member Function Documentation
virtual bool vtkQtChartMouseSelection::isCombinable |
( |
| ) |
const |
|
inlinevirtual |
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.
Adds a selection handler to the list.
The selection mode list is rebuilt when a new handler is added.
- Parameters
-
handler | The new selection handler. |
Inserts a selection handler into the list.
- Parameters
-
index | Where to insert the handler. |
handler | The new selection handler. |
Removes the given selection handler from the list.
- Parameters
-
handler | The selection handler to remove. |
virtual bool vtkQtChartMouseSelection::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 vtkQtChartMouseSelection::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 vtkQtChartMouseSelection::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 vtkQtChartMouseSelection::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.
void vtkQtChartMouseSelection::setSelectionMode |
( |
const QString & |
mode | ) |
|
|
slot |
Sets the current selection mode.
- Parameters
-
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.
- Parameters
-
mode | The name of the new selection mode. |
The documentation for this class was generated from the following file: