00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00023
00024 #ifndef _vtkQtChartSeriesSelectionHandler_h
00025 #define _vtkQtChartSeriesSelectionHandler_h
00026
00027 #include "vtkQtChartExport.h"
00028 #include "vtkQtChartMouseSelectionHandler.h"
00029
00030 class vtkQtChartSeriesLayer;
00031 class vtkQtChartSeriesSelectionHandlerInternal;
00032
00033
00038 class VTKQTCHART_EXPORT vtkQtChartSeriesSelectionHandler :
00039 public vtkQtChartMouseSelectionHandler
00040 {
00041 public:
00045 vtkQtChartSeriesSelectionHandler(QObject *parent=0);
00046 virtual ~vtkQtChartSeriesSelectionHandler();
00047
00049
00050
00051
00052
00053
00054
00055
00056
00057 void setModeNames(const QString &series, const QString &points);
00058
00069 void setMousePressModifiers(Qt::KeyboardModifiers series,
00070 Qt::KeyboardModifiers points);
00071
00076 vtkQtChartSeriesLayer *getLayer() const {return this->Layer;}
00077
00081 void setLayer(vtkQtChartSeriesLayer *layer) {this->Layer = layer;}
00083
00085
00086 virtual int getNumberOfModes() const;
00087 virtual void getModeList(QStringList &list) const;
00088
00089 virtual bool mousePressEvent(const QString &mode, QMouseEvent *e,
00090 vtkQtChartArea *chart);
00091 virtual bool isMouseMoveAvailable(const QString &mode) const;
00092 virtual void startMouseMove(const QString &mode, vtkQtChartArea *chart);
00093 virtual void mouseMoveEvent(const QString &mode, QMouseEvent *e,
00094 vtkQtChartArea *chart);
00095 virtual void finishMouseMove(const QString &mode, vtkQtChartArea *chart);
00096 virtual bool mouseReleaseEvent(const QString &mode, QMouseEvent *e,
00097 vtkQtChartArea *chart);
00098 virtual bool mouseDoubleClickEvent(const QString &mode, QMouseEvent *e,
00099 vtkQtChartArea *chart);
00101
00102 protected:
00103 vtkQtChartSeriesLayer *Layer;
00104
00105 private:
00107 vtkQtChartSeriesSelectionHandlerInternal *Internal;
00108
00109 private:
00110 vtkQtChartSeriesSelectionHandler(const vtkQtChartSeriesSelectionHandler &);
00111 vtkQtChartSeriesSelectionHandler &operator=(
00112 const vtkQtChartSeriesSelectionHandler &);
00113 };
00114
00115 #endif