VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
home
demarle
Source
VTK
release
8.2
build
Utilities
Doxygen
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
=========================================================================*/
21
#ifndef vtkWebInteractionEvent_h
22
#define vtkWebInteractionEvent_h
23
24
#include "
vtkObject.h
"
25
#include "vtkWebCoreModule.h"
// needed for exports
26
27
class
VTKWEBCORE_EXPORT
vtkWebInteractionEvent
:
public
vtkObject
28
{
29
public
:
30
static
vtkWebInteractionEvent
*
New
();
31
vtkTypeMacro(
vtkWebInteractionEvent
,
vtkObject
);
32
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
33
34
enum
MouseButton
35
{
36
LEFT_BUTTON = 0x01,
37
MIDDLE_BUTTON = 0x02,
38
RIGHT_BUTTON = 0x04
39
};
40
41
enum
ModifierKeys
42
{
43
SHIFT_KEY = 0x01,
44
CTRL_KEY = 0x02,
45
ALT_KEY = 0x04,
46
META_KEY = 0x08
47
};
48
50
53
vtkSetMacro(Buttons,
unsigned
int
);
54
vtkGetMacro(Buttons,
unsigned
int
);
56
58
61
vtkSetMacro(Modifiers,
unsigned
int
);
62
vtkGetMacro(Modifiers,
unsigned
int
);
64
66
69
vtkSetMacro(KeyCode,
char
);
70
vtkGetMacro(KeyCode,
char
);
72
74
77
vtkSetMacro(X,
double
);
78
vtkGetMacro(X,
double
);
79
vtkSetMacro(Y,
double
);
80
vtkGetMacro(Y,
double
);
81
vtkSetMacro(Scroll,
double
);
82
vtkGetMacro(Scroll,
double
);
84
85
// Handle double click
86
vtkSetMacro(RepeatCount,
int
);
87
vtkGetMacro(RepeatCount,
int
);
88
89
protected
:
90
vtkWebInteractionEvent
();
91
~
vtkWebInteractionEvent
()
override
;
92
93
unsigned
int
Buttons
;
94
unsigned
int
Modifiers
;
95
char
KeyCode
;
96
double
X
;
97
double
Y
;
98
double
Scroll
;
99
int
RepeatCount
;
100
101
private
:
102
vtkWebInteractionEvent
(
const
vtkWebInteractionEvent
&) =
delete
;
103
void
operator=(
const
vtkWebInteractionEvent
&) =
delete
;
104
105
};
106
107
#endif
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:59
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkWebInteractionEvent
Definition:
vtkWebInteractionEvent.h:27
vtkWebInteractionEvent::MouseButton
MouseButton
Definition:
vtkWebInteractionEvent.h:34
vtkWebInteractionEvent::Y
double Y
Definition:
vtkWebInteractionEvent.h:97
vtkWebInteractionEvent::KeyCode
char KeyCode
Definition:
vtkWebInteractionEvent.h:95
vtkWebInteractionEvent::Modifiers
unsigned int Modifiers
Definition:
vtkWebInteractionEvent.h:94
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkWebInteractionEvent::RepeatCount
int RepeatCount
Definition:
vtkWebInteractionEvent.h:99
vtkWebInteractionEvent::X
double X
Definition:
vtkWebInteractionEvent.h:96
vtkWebInteractionEvent::ModifierKeys
ModifierKeys
Definition:
vtkWebInteractionEvent.h:41
vtkWebInteractionEvent::Buttons
unsigned int Buttons
Definition:
vtkWebInteractionEvent.h:93
vtkWebInteractionEvent::Scroll
double Scroll
Definition:
vtkWebInteractionEvent.h:98
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkObject.h
Generated by
1.8.11