VTK  9.1.0
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
27class VTKWEBCORE_EXPORT vtkWebInteractionEvent : public vtkObject
28{
29public:
32 void PrintSelf(ostream& os, vtkIndent indent) override;
33
35 {
36 LEFT_BUTTON = 0x01,
37 MIDDLE_BUTTON = 0x02,
38 RIGHT_BUTTON = 0x04
39 };
40
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
89protected:
92
93 unsigned int Buttons;
94 unsigned int Modifiers;
95 char KeyCode;
96 double X;
97 double Y;
98 double Scroll;
100
101private:
103 void operator=(const vtkWebInteractionEvent&) = delete;
104};
105
106#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract base class for most VTK objects
Definition: vtkObject.h:82
~vtkWebInteractionEvent() override
static vtkWebInteractionEvent * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.