The vtkQtChartSeriesSelectionHandler class handles mouse selection for chart series layers.
More...
#include <vtkQtChartSeriesSelectionHandler.h>
|
| vtkQtChartSeriesSelectionHandler (QObject *parent=0) |
| Creates a chart series selection handler. More...
|
|
virtual | ~vtkQtChartSeriesSelectionHandler () |
|
|
void | setModeNames (const QString &series, const QString &points) |
| Sets the mode names for series and point selection. More...
|
|
void | setMousePressModifiers (Qt::KeyboardModifiers series, Qt::KeyboardModifiers points) |
| Sets the allowed modifiers for the selection modes. More...
|
|
vtkQtChartSeriesLayer * | getLayer () const |
| Gets the chart layer associated with the handler. More...
|
|
void | setLayer (vtkQtChartSeriesLayer *layer) |
| Sets the chart layer associated with the handler. More...
|
|
|
virtual int | getNumberOfModes () const |
| Gets the number of mouse modes. More...
|
|
virtual void | getModeList (QStringList &list) const |
| Gets the list of mouse mode names. More...
|
|
virtual bool | mousePressEvent (const QString &mode, QMouseEvent *e, vtkQtChartArea *chart) |
| Handles the mouse press event. More...
|
|
virtual bool | isMouseMoveAvailable (const QString &mode) const |
| Gets whether or not mouse move is available for the given mode. More...
|
|
virtual void | startMouseMove (const QString &mode, vtkQtChartArea *chart) |
| Starts a mouse move for the given mode. More...
|
|
virtual void | mouseMoveEvent (const QString &mode, QMouseEvent *e, vtkQtChartArea *chart) |
| Handles the mouse move event. More...
|
|
virtual void | finishMouseMove (const QString &mode, vtkQtChartArea *chart) |
| Finishes a mouse move for the given mode. More...
|
|
virtual bool | mouseReleaseEvent (const QString &mode, QMouseEvent *e, vtkQtChartArea *chart) |
| Handles the mouse release event. More...
|
|
virtual bool | mouseDoubleClickEvent (const QString &mode, QMouseEvent *e, vtkQtChartArea *chart) |
| Handles the mouse double click event. More...
|
|
Public Member Functions inherited from vtkQtChartMouseSelectionHandler |
| vtkQtChartMouseSelectionHandler (QObject *parent=0) |
| Creates a mouse selection handler. More...
|
|
virtual | ~vtkQtChartMouseSelectionHandler () |
|
The vtkQtChartSeriesSelectionHandler class handles mouse selection for chart series layers.
Definition at line 38 of file vtkQtChartSeriesSelectionHandler.h.
vtkQtChartSeriesSelectionHandler::vtkQtChartSeriesSelectionHandler |
( |
QObject * |
parent = 0 | ) |
|
Creates a chart series selection handler.
- Parameters
-
virtual vtkQtChartSeriesSelectionHandler::~vtkQtChartSeriesSelectionHandler |
( |
| ) |
|
|
virtual |
void vtkQtChartSeriesSelectionHandler::setModeNames |
( |
const QString & |
series, |
|
|
const QString & |
points |
|
) |
| |
Sets the mode names for series and point selection.
Pass in an empty string to prevent that mode type.
- Parameters
-
series | The name of the series selection mode. |
points | The name of the point selection mode. |
void vtkQtChartSeriesSelectionHandler::setMousePressModifiers |
( |
Qt::KeyboardModifiers |
series, |
|
|
Qt::KeyboardModifiers |
points |
|
) |
| |
Sets the allowed modifiers for the selection modes.
If the shift modifier is allowed, the selection handler will allow the user to select contiguous items. If the control modifier is allowed, the selection handler will allow the user to do xor selection.
- Parameters
-
series | The allowed series mode modifiers. |
points | The allowed point mode modifiers. |
virtual int vtkQtChartSeriesSelectionHandler::getNumberOfModes |
( |
| ) |
const |
|
virtual |
virtual void vtkQtChartSeriesSelectionHandler::getModeList |
( |
QStringList & |
list | ) |
const |
|
virtual |
virtual bool vtkQtChartSeriesSelectionHandler::mousePressEvent |
( |
const QString & |
mode, |
|
|
QMouseEvent * |
e, |
|
|
vtkQtChartArea * |
chart |
|
) |
| |
|
virtual |
Handles the mouse press event.
- Parameters
-
mode | The current mouse mode. |
e | The mouse event. |
chart | The chart area. |
- Returns
- True if the event was handled.
Implements vtkQtChartMouseSelectionHandler.
virtual bool vtkQtChartSeriesSelectionHandler::isMouseMoveAvailable |
( |
const QString & |
mode | ) |
const |
|
virtual |
Gets whether or not mouse move is available for the given mode.
- Parameters
-
- Returns
- True if mouse move is available for the given mode.
Implements vtkQtChartMouseSelectionHandler.
virtual void vtkQtChartSeriesSelectionHandler::startMouseMove |
( |
const QString & |
mode, |
|
|
vtkQtChartArea * |
chart |
|
) |
| |
|
virtual |
virtual void vtkQtChartSeriesSelectionHandler::mouseMoveEvent |
( |
const QString & |
mode, |
|
|
QMouseEvent * |
e, |
|
|
vtkQtChartArea * |
chart |
|
) |
| |
|
virtual |
virtual void vtkQtChartSeriesSelectionHandler::finishMouseMove |
( |
const QString & |
mode, |
|
|
vtkQtChartArea * |
chart |
|
) |
| |
|
virtual |
virtual bool vtkQtChartSeriesSelectionHandler::mouseReleaseEvent |
( |
const QString & |
mode, |
|
|
QMouseEvent * |
e, |
|
|
vtkQtChartArea * |
chart |
|
) |
| |
|
virtual |
Handles the mouse release event.
- Parameters
-
mode | The current mouse mode. |
e | The mouse event. |
chart | The chart area. |
- Returns
- True if the event was handled.
Implements vtkQtChartMouseSelectionHandler.
virtual bool vtkQtChartSeriesSelectionHandler::mouseDoubleClickEvent |
( |
const QString & |
mode, |
|
|
QMouseEvent * |
e, |
|
|
vtkQtChartArea * |
chart |
|
) |
| |
|
virtual |
Handles the mouse double click event.
- Parameters
-
mode | The current mouse mode. |
e | The mouse event. |
chart | The chart area. |
- Returns
- True if the event was handled.
Implements vtkQtChartMouseSelectionHandler.
The documentation for this class was generated from the following file: