VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
GUISupport
Qt
Chart
vtkQtChartMouseSelectionHandler.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkQtChartMouseSelectionHandler.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 _vtkQtChartMouseSelectionHandler_h
25
#define _vtkQtChartMouseSelectionHandler_h
26
27
#include "vtkQtChartExport.h"
28
#include <QObject>
29
30
class
vtkQtChartArea
;
31
class
vtkQtChartMouseBox
;
32
class
QMouseEvent;
33
class
QString;
34
class
QStringList;
35
36
41
class
VTKQTCHART_EXPORT
vtkQtChartMouseSelectionHandler
:
public
QObject
42
{
43
public
:
47
vtkQtChartMouseSelectionHandler
(QObject *parent=0);
48
virtual
~vtkQtChartMouseSelectionHandler
() {}
49
54
virtual
int
getNumberOfModes()
const
=0;
55
59
virtual
void
getModeList(QStringList &list)
const
=0;
60
68
virtual
bool
mousePressEvent(
const
QString &
mode
, QMouseEvent *e,
69
vtkQtChartArea
*chart)=0;
70
76
virtual
bool
isMouseMoveAvailable(
const
QString &
mode
)
const
=0;
77
82
virtual
void
startMouseMove(
const
QString &
mode
,
vtkQtChartArea
*chart)=0;
83
89
virtual
void
mouseMoveEvent(
const
QString &
mode
, QMouseEvent *e,
90
vtkQtChartArea
*chart)=0;
91
96
virtual
void
finishMouseMove(
const
QString &
mode
,
vtkQtChartArea
*chart)=0;
97
105
virtual
bool
mouseReleaseEvent(
const
QString &
mode
, QMouseEvent *e,
106
vtkQtChartArea
*chart)=0;
107
115
virtual
bool
mouseDoubleClickEvent(
const
QString &
mode
, QMouseEvent *e,
116
vtkQtChartArea
*chart)=0;
117
};
118
119
#endif
Generated on Fri Aug 2 2013 12:19:58 for VTK by
1.8.4