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=========================================================================*/
132#ifndef vtkWidgetEvent_h
133#define vtkWidgetEvent_h
134
135#include "vtkInteractionWidgetsModule.h" // For export macro
136#include "vtkObject.h"
137
138class VTKINTERACTIONWIDGETS_EXPORT vtkWidgetEvent : public vtkObject
139{
140public:
145
147
150 vtkTypeMacro(vtkWidgetEvent, vtkObject);
151 void PrintSelf(ostream& os, vtkIndent indent) override;
153
158 {
159 NoEvent = 0,
188 HoverLeave
189 };
190
192
195 static const char* GetStringFromEventId(unsigned long event);
196 static unsigned long GetEventIdFromString(const char* event);
198
199protected:
200 vtkWidgetEvent() = default;
201 ~vtkWidgetEvent() override = default;
202
203private:
204 vtkWidgetEvent(const vtkWidgetEvent&) = delete;
205 void operator=(const vtkWidgetEvent&) = delete;
206};
207
208#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 unsigned long GetEventIdFromString(const char *event)
Convenience methods for translating between event names and event ids.
static vtkWidgetEvent * New()
The object factory constructor.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard macros.
vtkWidgetEvent()=default
static const char * GetStringFromEventId(unsigned long event)
Convenience methods for translating between event names and event ids.
~vtkWidgetEvent() override=default
WidgetEventIds
All the widget events are defined here.