VTK  9.1.0
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 =========================================================================*/
122 #ifndef vtkWidgetEvent_h
123 #define vtkWidgetEvent_h
124 
125 #include "vtkInteractionWidgetsModule.h" // For export macro
126 #include "vtkObject.h"
127 
128 class VTKINTERACTIONWIDGETS_EXPORT vtkWidgetEvent : public vtkObject
129 {
130 public:
134  static vtkWidgetEvent* New();
135 
137 
140  vtkTypeMacro(vtkWidgetEvent, vtkObject);
141  void PrintSelf(ostream& os, vtkIndent indent) override;
143 
148  {
149  NoEvent = 0,
169  Up,
178  HoverLeave
179  };
180 
182 
185  static const char* GetStringFromEventId(unsigned long event);
186  static unsigned long GetEventIdFromString(const char* event);
188 
189 protected:
190  vtkWidgetEvent() = default;
191  ~vtkWidgetEvent() override = default;
192 
193 private:
194  vtkWidgetEvent(const vtkWidgetEvent&) = delete;
195  void operator=(const vtkWidgetEvent&) = delete;
196 };
197 
198 #endif
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract base class for most VTK objects
Definition: vtkObject.h:73
define widget events
static const char * GetStringFromEventId(unsigned long event)
Convenience methods for translating between event names and event ids.
static unsigned long GetEventIdFromString(const char *event)
Convenience methods for translating between event names and event ids.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard macros.
static vtkWidgetEvent * New()
The object factory constructor.
vtkWidgetEvent()=default
~vtkWidgetEvent() override=default
WidgetEventIds
All the widget events are defined here.