VTK  9.3.0
vtkWidgetEvent.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
14#ifndef vtkWidgetEvent_h
15#define vtkWidgetEvent_h
16
17#include "vtkInteractionWidgetsModule.h" // For export macro
18#include "vtkObject.h"
19
20VTK_ABI_NAMESPACE_BEGIN
21class VTKINTERACTIONWIDGETS_EXPORT vtkWidgetEvent : public vtkObject
22{
23public:
28
30
33 vtkTypeMacro(vtkWidgetEvent, vtkObject);
34 void PrintSelf(ostream& os, vtkIndent indent) override;
36
41 {
42 NoEvent = 0,
74 HoverLeave
75 };
76
78
81 static const char* GetStringFromEventId(unsigned long event);
82 static unsigned long GetEventIdFromString(const char* event);
84
85protected:
86 vtkWidgetEvent() = default;
87 ~vtkWidgetEvent() override = default;
88
89private:
90 vtkWidgetEvent(const vtkWidgetEvent&) = delete;
91 void operator=(const vtkWidgetEvent&) = delete;
92};
93
94VTK_ABI_NAMESPACE_END
95#endif
a simple class to control print indentation
Definition vtkIndent.h:29
abstract base class for most VTK objects
Definition vtkObject.h:49
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.