VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dox
Web
Core
vtkWebInteractionEvent.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkWebInteractionEvent.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
=========================================================================*/
20
#ifndef vtkWebInteractionEvent_h
21
#define vtkWebInteractionEvent_h
22
23
#include "
vtkObject.h
"
24
#include "
vtkWebCoreModule.h
"
// needed for exports
25
26
class
VTKWEBCORE_EXPORT
vtkWebInteractionEvent
:
public
vtkObject
27
{
28
public
:
29
static
vtkWebInteractionEvent
*
New
();
30
vtkTypeMacro(
vtkWebInteractionEvent
,
vtkObject
);
31
void
PrintSelf
(ostream& os,
vtkIndent
indent);
32
33
enum
MouseButton
34
{
35
LEFT_BUTTON = 0x01,
36
MIDDLE_BUTTON = 0x02,
37
RIGHT_BUTTON = 0x04
38
};
39
40
enum
ModifierKeys
41
{
42
SHIFT_KEY = 0x01,
43
CTRL_KEY = 0x02,
44
ALT_KEY = 0x04,
45
META_KEY = 0x08
46
};
47
49
50
vtkSetMacro(Buttons,
unsigned
int
);
51
vtkGetMacro(Buttons,
unsigned
int
);
53
55
56
vtkSetMacro(Modifiers,
unsigned
int
);
57
vtkGetMacro(Modifiers,
unsigned
int
);
59
61
62
vtkSetMacro(KeyCode,
char
);
63
vtkGetMacro(KeyCode,
char
);
65
67
68
vtkSetMacro(X,
double
);
69
vtkGetMacro(X,
double
);
70
vtkSetMacro(Y,
double
);
71
vtkGetMacro(Y,
double
);
72
vtkSetMacro(Scroll,
double
);
73
vtkGetMacro(Scroll,
double
);
75
76
// Handle double click
77
vtkSetMacro(RepeatCount,
int
);
78
vtkGetMacro(RepeatCount,
int
);
79
//BTX
80
protected
:
81
vtkWebInteractionEvent
();
82
~
vtkWebInteractionEvent
();
83
84
unsigned
int
Buttons
;
85
unsigned
int
Modifiers
;
86
char
KeyCode
;
87
double
X
;
88
double
Y
;
89
double
Scroll
;
90
int
RepeatCount
;
91
92
private
:
93
vtkWebInteractionEvent
(
const
vtkWebInteractionEvent
&);
// Not implemented
94
void
operator=(
const
vtkWebInteractionEvent
&);
// Not implemented
95
//ETX
96
};
97
98
#endif
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:61
vtkWebInteractionEvent
Definition:
vtkWebInteractionEvent.h:26
vtkWebInteractionEvent::MouseButton
MouseButton
Definition:
vtkWebInteractionEvent.h:33
vtkWebInteractionEvent::Y
double Y
Definition:
vtkWebInteractionEvent.h:88
vtkWebInteractionEvent::KeyCode
char KeyCode
Definition:
vtkWebInteractionEvent.h:86
vtkObject::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkWebInteractionEvent::Modifiers
unsigned int Modifiers
Definition:
vtkWebInteractionEvent.h:85
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
vtkWebInteractionEvent::RepeatCount
int RepeatCount
Definition:
vtkWebInteractionEvent.h:90
vtkWebInteractionEvent::X
double X
Definition:
vtkWebInteractionEvent.h:87
vtkWebCoreModule.h
vtkWebInteractionEvent::ModifierKeys
ModifierKeys
Definition:
vtkWebInteractionEvent.h:40
vtkWebInteractionEvent::Buttons
unsigned int Buttons
Definition:
vtkWebInteractionEvent.h:84
vtkWebInteractionEvent::Scroll
double Scroll
Definition:
vtkWebInteractionEvent.h:89
vtkObject::New
static vtkObject * New()
vtkObject.h
VTKWEBCORE_EXPORT
#define VTKWEBCORE_EXPORT
Definition:
vtkWebCoreModule.h:15
Generated on Wed Dec 16 2015 17:15:12 for VTK by
1.8.9.1