VTK  9.2.6
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=========================================================================*/
35#ifndef vtkWidgetEvent_h
36#define vtkWidgetEvent_h
37
38#include "vtkInteractionWidgetsModule.h" // For export macro
39#include "vtkObject.h"
40
41class VTKINTERACTIONWIDGETS_EXPORT vtkWidgetEvent : public vtkObject
42{
43public:
48
50
53 vtkTypeMacro(vtkWidgetEvent, vtkObject);
54 void PrintSelf(ostream& os, vtkIndent indent) override;
56
61 {
62 NoEvent = 0,
94 HoverLeave
95 };
96
98
101 static const char* GetStringFromEventId(unsigned long event);
102 static unsigned long GetEventIdFromString(const char* event);
104
105protected:
106 vtkWidgetEvent() = default;
107 ~vtkWidgetEvent() override = default;
108
109private:
110 vtkWidgetEvent(const vtkWidgetEvent&) = delete;
111 void operator=(const vtkWidgetEvent&) = delete;
112};
113
114#endif
a simple class to control print indentation
Definition vtkIndent.h:49
abstract base class for most VTK objects
Definition vtkObject.h:72
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.