#include <vtkQtChartSeriesSelectionHandler.h>
Definition at line 38 of file vtkQtChartSeriesSelectionHandler.h.
Public Member Functions | |
vtkQtChartSeriesSelectionHandler (QObject *parent=0) | |
Creates a chart series selection handler. | |
virtual | ~vtkQtChartSeriesSelectionHandler () |
Setup Methods | |
void | setModeNames (const QString &series, const QString &points) |
Sets the mode names for series and point selection. | |
void | setMousePressModifiers (Qt::KeyboardModifiers series, Qt::KeyboardModifiers points) |
Sets the allowed modifiers for the selection modes. | |
vtkQtChartSeriesLayer * | getLayer () const |
Gets the chart layer associated with the handler. | |
void | setLayer (vtkQtChartSeriesLayer *layer) |
Sets the chart layer associated with the handler. | |
vtkQtChartMouseSelectionHandler Methods | |
virtual int | getNumberOfModes () const |
Gets the number of mouse modes. | |
virtual void | getModeList (QStringList &list) const |
Gets the list of mouse mode names. | |
virtual bool | mousePressEvent (const QString &mode, QMouseEvent *e, vtkQtChartArea *chart) |
Handles the mouse press event. | |
virtual bool | isMouseMoveAvailable (const QString &mode) const |
Gets whether or not mouse move is available for the given mode. | |
virtual void | startMouseMove (const QString &mode, vtkQtChartArea *chart) |
Starts a mouse move for the given mode. | |
virtual void | mouseMoveEvent (const QString &mode, QMouseEvent *e, vtkQtChartArea *chart) |
Handles the mouse move event. | |
virtual void | finishMouseMove (const QString &mode, vtkQtChartArea *chart) |
Finishes a mouse move for the given mode. | |
virtual bool | mouseReleaseEvent (const QString &mode, QMouseEvent *e, vtkQtChartArea *chart) |
Handles the mouse release event. | |
virtual bool | mouseDoubleClickEvent (const QString &mode, QMouseEvent *e, vtkQtChartArea *chart) |
Handles the mouse double click event. | |
Protected Attributes | |
vtkQtChartSeriesLayer * | Layer |
Stores the chart layer. |
vtkQtChartSeriesSelectionHandler::vtkQtChartSeriesSelectionHandler | ( | QObject * | parent = 0 |
) |
Creates a chart series selection handler.
parent | The parent object. |
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.
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.
series | The allowed series mode modifiers. | |
points | The allowed point mode modifiers. |
vtkQtChartSeriesLayer* vtkQtChartSeriesSelectionHandler::getLayer | ( | ) | const [inline] |
Gets the chart layer associated with the handler.
Definition at line 76 of file vtkQtChartSeriesSelectionHandler.h.
void vtkQtChartSeriesSelectionHandler::setLayer | ( | vtkQtChartSeriesLayer * | layer | ) | [inline] |
Sets the chart layer associated with the handler.
layer | The chart layer for the handler to use. |
Definition at line 81 of file vtkQtChartSeriesSelectionHandler.h.
virtual int vtkQtChartSeriesSelectionHandler::getNumberOfModes | ( | ) | const [virtual] |
Gets the number of mouse modes.
Implements vtkQtChartMouseSelectionHandler.
virtual void vtkQtChartSeriesSelectionHandler::getModeList | ( | QStringList & | list | ) | const [virtual] |
Gets the list of mouse mode names.
list | Used to return the list of modes. |
Implements vtkQtChartMouseSelectionHandler.
virtual bool vtkQtChartSeriesSelectionHandler::mousePressEvent | ( | const QString & | mode, | |
QMouseEvent * | e, | |||
vtkQtChartArea * | chart | |||
) | [virtual] |
Handles the mouse press event.
mode | The current mouse mode. | |
e | The mouse event. | |
chart | The chart area. |
Implements vtkQtChartMouseSelectionHandler.
virtual bool vtkQtChartSeriesSelectionHandler::isMouseMoveAvailable | ( | const QString & | mode | ) | const [virtual] |
Gets whether or not mouse move is available for the given mode.
mode | The mouse mode name. |
Implements vtkQtChartMouseSelectionHandler.
virtual void vtkQtChartSeriesSelectionHandler::startMouseMove | ( | const QString & | mode, | |
vtkQtChartArea * | chart | |||
) | [virtual] |
Starts a mouse move for the given mode.
mode | The mouse mode to start. | |
chart | The chart area. |
Implements vtkQtChartMouseSelectionHandler.
virtual void vtkQtChartSeriesSelectionHandler::mouseMoveEvent | ( | const QString & | mode, | |
QMouseEvent * | e, | |||
vtkQtChartArea * | chart | |||
) | [virtual] |
Handles the mouse move event.
mode | The current mouse mode. | |
e | The mouse event. | |
chart | The chart area. |
Implements vtkQtChartMouseSelectionHandler.
virtual void vtkQtChartSeriesSelectionHandler::finishMouseMove | ( | const QString & | mode, | |
vtkQtChartArea * | chart | |||
) | [virtual] |
Finishes a mouse move for the given mode.
mode | The mouse mode to finish. | |
chart | The chart area. |
Implements vtkQtChartMouseSelectionHandler.
virtual bool vtkQtChartSeriesSelectionHandler::mouseReleaseEvent | ( | const QString & | mode, | |
QMouseEvent * | e, | |||
vtkQtChartArea * | chart | |||
) | [virtual] |
Handles the mouse release event.
mode | The current mouse mode. | |
e | The mouse event. | |
chart | The chart area. |
Implements vtkQtChartMouseSelectionHandler.
virtual bool vtkQtChartSeriesSelectionHandler::mouseDoubleClickEvent | ( | const QString & | mode, | |
QMouseEvent * | e, | |||
vtkQtChartArea * | chart | |||
) | [virtual] |
Handles the mouse double click event.
mode | The current mouse mode. | |
e | The mouse event. | |
chart | The chart area. |
Implements vtkQtChartMouseSelectionHandler.