VTK  9.2.5
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 =========================================================================*/
135 #ifndef vtkWidgetEvent_h
136 #define vtkWidgetEvent_h
137 
138 #include "vtkInteractionWidgetsModule.h" // For export macro
139 #include "vtkObject.h"
140 
141 class VTKINTERACTIONWIDGETS_EXPORT vtkWidgetEvent : public vtkObject
142 {
143 public:
147  static vtkWidgetEvent* New();
148 
150 
153  vtkTypeMacro(vtkWidgetEvent, vtkObject);
154  void PrintSelf(ostream& os, vtkIndent indent) override;
156 
161  {
162  NoEvent = 0,
185  Up,
194  HoverLeave
195  };
196 
198 
201  static const char* GetStringFromEventId(unsigned long event);
202  static unsigned long GetEventIdFromString(const char* event);
204 
205 protected:
206  vtkWidgetEvent() = default;
207  ~vtkWidgetEvent() override = default;
208 
209 private:
210  vtkWidgetEvent(const vtkWidgetEvent&) = delete;
211  void operator=(const vtkWidgetEvent&) = delete;
212 };
213 
214 #endif
a simple class to control print indentation
Definition: vtkIndent.h:119
abstract base class for most VTK objects
Definition: vtkObject.h:82
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.