VTK
vtkQtChartSeriesSelectionHandler.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkQtChartSeriesSelectionHandler.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
20 
23 
24 #ifndef _vtkQtChartSeriesSelectionHandler_h
25 #define _vtkQtChartSeriesSelectionHandler_h
26 
27 #include "vtkQtChartExport.h"
29 
31 class vtkQtChartSeriesSelectionHandlerInternal;
32 
33 
38 class VTKQTCHART_EXPORT vtkQtChartSeriesSelectionHandler :
40 {
41 public:
45  vtkQtChartSeriesSelectionHandler(QObject *parent=0);
47 
49 
50  void setModeNames(const QString &series, const QString &points);
58 
69  void setMousePressModifiers(Qt::KeyboardModifiers series,
70  Qt::KeyboardModifiers points);
71 
76  vtkQtChartSeriesLayer *getLayer() const {return this->Layer;}
77 
81  void setLayer(vtkQtChartSeriesLayer *layer) {this->Layer = layer;}
83 
85 
86  virtual int getNumberOfModes() const;
87  virtual void getModeList(QStringList &list) const;
88 
89  virtual bool mousePressEvent(const QString &mode, QMouseEvent *e,
90  vtkQtChartArea *chart);
91  virtual bool isMouseMoveAvailable(const QString &mode) const;
92  virtual void startMouseMove(const QString &mode, vtkQtChartArea *chart);
93  virtual void mouseMoveEvent(const QString &mode, QMouseEvent *e,
94  vtkQtChartArea *chart);
95  virtual void finishMouseMove(const QString &mode, vtkQtChartArea *chart);
96  virtual bool mouseReleaseEvent(const QString &mode, QMouseEvent *e,
97  vtkQtChartArea *chart);
98  virtual bool mouseDoubleClickEvent(const QString &mode, QMouseEvent *e,
99  vtkQtChartArea *chart);
101 
102 protected:
104 
105 private:
107  vtkQtChartSeriesSelectionHandlerInternal *Internal;
108 
109 private:
113 };
114 
115 #endif