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=========================================================================*/
26#ifndef vtkWidgetEvent_h
27#define vtkWidgetEvent_h
28
29#include "vtkInteractionWidgetsModule.h" // For export macro
30#include "vtkObject.h"
31
32class VTKINTERACTIONWIDGETS_EXPORT vtkWidgetEvent : public vtkObject
33{
34public:
39
41
44 vtkTypeMacro(vtkWidgetEvent, vtkObject);
45 void PrintSelf(ostream& os, vtkIndent indent) override;
47
52 {
53 NoEvent = 0,
85 HoverLeave
86 };
87
89
92 static const char* GetStringFromEventId(unsigned long event);
93 static unsigned long GetEventIdFromString(const char* event);
95
96protected:
97 vtkWidgetEvent() = default;
98 ~vtkWidgetEvent() override = default;
99
100private:
101 vtkWidgetEvent(const vtkWidgetEvent&) = delete;
102 void operator=(const vtkWidgetEvent&) = delete;
103};
104
105#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract base class for most VTK objects
Definition: vtkObject.h:63
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.