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=========================================================================*/
32#ifndef vtkWidgetEvent_h
33#define vtkWidgetEvent_h
34
35#include "vtkInteractionWidgetsModule.h" // For export macro
36#include "vtkObject.h"
37
38class VTKINTERACTIONWIDGETS_EXPORT vtkWidgetEvent : public vtkObject
39{
40public:
45
47
50 vtkTypeMacro(vtkWidgetEvent, vtkObject);
51 void PrintSelf(ostream& os, vtkIndent indent) override;
53
58 {
59 NoEvent = 0,
88 HoverLeave
89 };
90
92
95 static const char* GetStringFromEventId(unsigned long event);
96 static unsigned long GetEventIdFromString(const char* event);
98
99protected:
100 vtkWidgetEvent() = default;
101 ~vtkWidgetEvent() override = default;
102
103private:
104 vtkWidgetEvent(const vtkWidgetEvent&) = delete;
105 void operator=(const vtkWidgetEvent&) = delete;
106};
107
108#endif
a simple class to control print indentation
Definition: vtkIndent.h:43
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.