VTK
vtkWidgetEvent.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkWidgetEvent.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 =========================================================================*/
25 #ifndef vtkWidgetEvent_h
26 #define vtkWidgetEvent_h
27 
28 #include "vtkInteractionWidgetsModule.h" // For export macro
29 #include "vtkObject.h"
30 
32 {
33 public:
35  static vtkWidgetEvent *New() ;
36 
38 
39  vtkTypeMacro(vtkWidgetEvent,vtkObject);
40  void PrintSelf(ostream& os, vtkIndent indent);
42 
43 //BTX
45 
47  NoEvent = 0,
67  Up,
70  Right
71  };
72 //ETX
74 
76 
78  static const char *GetStringFromEventId(unsigned long event);
79  static unsigned long GetEventIdFromString(const char *event);
81 
82 protected:
84  virtual ~vtkWidgetEvent() {}
85 
86 private:
87  vtkWidgetEvent(const vtkWidgetEvent&); //Not implemented
88  void operator=(const vtkWidgetEvent&); //Not implemented
89 
90 };
91 
92 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
virtual ~vtkWidgetEvent()
define widget events
#define VTKINTERACTIONWIDGETS_EXPORT
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
static vtkObject * New()