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 =========================================================================*/
20 #ifndef vtkWebInteractionEvent_h
21 #define vtkWebInteractionEvent_h
22 
23 #include "vtkObject.h"
24 #include "vtkWebCoreModule.h" // needed for exports
25 
27 {
28 public:
29  static vtkWebInteractionEvent* New();
31  void PrintSelf(ostream& os, vtkIndent indent);
32 
34  {
35  LEFT_BUTTON = 0x01,
36  MIDDLE_BUTTON = 0x02,
37  RIGHT_BUTTON = 0x04
38  };
39 
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:
83 
84  unsigned int Buttons;
85  unsigned int Modifiers;
86  char KeyCode;
87  double X;
88  double Y;
89  double Scroll;
91 
92 private:
93  vtkWebInteractionEvent(const vtkWebInteractionEvent&); // Not implemented
94  void operator=(const vtkWebInteractionEvent&); // Not implemented
95 //ETX
96 };
97 
98 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
static vtkObject * New()
#define VTKWEBCORE_EXPORT