VTK
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();
32  void PrintSelf(ostream& os, vtkIndent indent);
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 
89 protected:
92 
93  unsigned int Buttons;
94  unsigned int Modifiers;
95  char KeyCode;
96  double X;
97  double Y;
98  double Scroll;
100 
101 private:
102  vtkWebInteractionEvent(const vtkWebInteractionEvent&) VTK_DELETE_FUNCTION;
103  void operator=(const vtkWebInteractionEvent&) VTK_DELETE_FUNCTION;
104 
105 };
106 
107 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:59
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...