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  {
50  NoEvent = 0,
70  Up,
78  AddFinalPoint3D
79  };
80 
82 
85  static const char* GetStringFromEventId(unsigned long event);
86  static unsigned long GetEventIdFromString(const char* event);
88 
89 protected:
91  ~vtkWidgetEvent() override {}
92 
93 private:
94  vtkWidgetEvent(const vtkWidgetEvent&) = delete;
95  void operator=(const vtkWidgetEvent&) = delete;
96 };
97 
98 #endif
vtkWidgetEvent::Resize
Definition: vtkWidgetEvent.h:58
vtkWidgetEvent::Reset
Definition: vtkWidgetEvent.h:69
vtkWidgetEvent::Down
Definition: vtkWidgetEvent.h:71
vtkWidgetEvent::EndScale
Definition: vtkWidgetEvent.h:57
vtkWidgetEvent::vtkWidgetEvent
vtkWidgetEvent()
Definition: vtkWidgetEvent.h:90
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkWidgetEvent::Left
Definition: vtkWidgetEvent.h:72
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:53
vtkWidgetEvent::EndTranslate
Definition: vtkWidgetEvent.h:55
vtkWidgetEvent::Translate
Definition: vtkWidgetEvent.h:54
vtkWidgetEvent::ModifyEvent
Definition: vtkWidgetEvent.h:68
vtkWidgetEvent::AddPoint
Definition: vtkWidgetEvent.h:64
vtkWidgetEvent::EndSelect3D
Definition: vtkWidgetEvent.h:75
vtkWidgetEvent::AddPoint3D
Definition: vtkWidgetEvent.h:77
vtkWidgetEvent::Move3D
Definition: vtkWidgetEvent.h:76
vtkWidgetEvent::EndRotate
Definition: vtkWidgetEvent.h:61
vtkWidgetEvent::SizeHandles
Definition: vtkWidgetEvent.h:63
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkWidgetEvent::Completed
Definition: vtkWidgetEvent.h:66
vtkWidgetEvent::EndSelect
Definition: vtkWidgetEvent.h:52
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkWidgetEvent::~vtkWidgetEvent
~vtkWidgetEvent() override
Definition: vtkWidgetEvent.h:91
vtkWidgetEvent::Select
Definition: vtkWidgetEvent.h:51
vtkWidgetEvent::Move
Definition: vtkWidgetEvent.h:62
vtkWidgetEvent::Up
Definition: vtkWidgetEvent.h:70
vtkObject.h
vtkWidgetEvent::Scale
Definition: vtkWidgetEvent.h:56
vtkWidgetEvent::Select3D
Definition: vtkWidgetEvent.h:74
vtkWidgetEvent::Delete
Definition: vtkWidgetEvent.h:53
vtkWidgetEvent::Right
Definition: vtkWidgetEvent.h:73
vtkWidgetEvent::AddFinalPoint
Definition: vtkWidgetEvent.h:65
vtkWidgetEvent::Rotate
Definition: vtkWidgetEvent.h:60
vtkWidgetEvent
define widget events
Definition: vtkWidgetEvent.h:29
vtkWidgetEvent::TimedOut
Definition: vtkWidgetEvent.h:67
vtkWidgetEvent::WidgetEventIds
WidgetEventIds
All the widget events are defined here.
Definition: vtkWidgetEvent.h:48
vtkWidgetEvent::EndResize
Definition: vtkWidgetEvent.h:59