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 =========================================================================*/
26 #ifndef vtkWidgetEvent_h
27 #define vtkWidgetEvent_h
28 
29 #include "vtkInteractionWidgetsModule.h" // For export macro
30 #include "vtkObject.h"
31 
32 class VTKINTERACTIONWIDGETS_EXPORT vtkWidgetEvent : public vtkObject
33 {
34 public:
38  static vtkWidgetEvent *New() ;
39 
41 
44  vtkTypeMacro(vtkWidgetEvent,vtkObject);
45  void PrintSelf(ostream& os, vtkIndent indent);
47 
52  NoEvent = 0,
72  Up,
75  Right
76  };
77 
79 
82  static const char *GetStringFromEventId(unsigned long event);
83  static unsigned long GetEventIdFromString(const char *event);
85 
86 protected:
88  virtual ~vtkWidgetEvent() {}
89 
90 private:
91  vtkWidgetEvent(const vtkWidgetEvent&) VTK_DELETE_FUNCTION;
92  void operator=(const vtkWidgetEvent&) VTK_DELETE_FUNCTION;
93 
94 };
95 
96 #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.
virtual ~vtkWidgetEvent()
define widget events
a simple class to control print indentation
Definition: vtkIndent.h:39
WidgetEventIds
All the widget events are defined here.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...