VTK
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 =========================================================================*/
23 #ifndef vtkWidgetEvent_h
24 #define vtkWidgetEvent_h
25 
26 #include "vtkInteractionWidgetsModule.h" // For export macro
27 #include "vtkObject.h"
28 
29 class VTKINTERACTIONWIDGETS_EXPORT vtkWidgetEvent : public vtkObject
30 {
31 public:
35  static vtkWidgetEvent *New() ;
36 
38 
41  vtkTypeMacro(vtkWidgetEvent,vtkObject);
42  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
49  NoEvent = 0,
69  Up,
77  AddFinalPoint3D
78  };
79 
81 
84  static const char *GetStringFromEventId(unsigned long event);
85  static unsigned long GetEventIdFromString(const char *event);
87 
88 protected:
90  ~vtkWidgetEvent() override {}
91 
92 private:
93  vtkWidgetEvent(const vtkWidgetEvent&) = delete;
94  void operator=(const vtkWidgetEvent&) = delete;
95 
96 };
97 
98 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:53
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
define widget events
a simple class to control print indentation
Definition: vtkIndent.h:33
WidgetEventIds
All the widget events are defined here.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
~vtkWidgetEvent() override