VTK
9.3.0
Main Page
Related Pages
Topics
Namespaces
Classes
Files
File List
File Members
Interaction
Widgets
vtkWidgetEvent.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2
// SPDX-License-Identifier: BSD-3-Clause
14
#ifndef vtkWidgetEvent_h
15
#define vtkWidgetEvent_h
16
17
#include "vtkInteractionWidgetsModule.h"
// For export macro
18
#include "
vtkObject.h
"
19
20
VTK_ABI_NAMESPACE_BEGIN
21
class
VTKINTERACTIONWIDGETS_EXPORT
vtkWidgetEvent
:
public
vtkObject
22
{
23
public
:
27
static
vtkWidgetEvent
*
New
();
28
30
33
vtkTypeMacro(
vtkWidgetEvent
,
vtkObject
);
34
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
36
40
enum
WidgetEventIds
41
{
42
NoEvent = 0,
43
Select
,
44
EndSelect
,
45
Delete
,
46
Translate
,
47
EndTranslate
,
48
Scale
,
49
EndScale
,
50
Resize
,
51
EndResize
,
52
Rotate
,
53
EndRotate
,
54
Move
,
55
SizeHandles
,
56
AddPoint
,
57
AddFinalPoint
,
58
Completed
,
59
PickPoint
,
60
PickNormal
,
61
PickDirectionPoint
,
62
TimedOut
,
63
ModifyEvent
,
64
Reset
,
65
Up
,
66
Down
,
67
Left
,
68
Right
,
69
Select3D
,
70
EndSelect3D
,
71
Move3D
,
72
AddPoint3D
,
73
AddFinalPoint3D
,
74
HoverLeave
75
};
76
78
81
static
const
char
*
GetStringFromEventId
(
unsigned
long
event);
82
static
unsigned
long
GetEventIdFromString
(
const
char
* event);
84
85
protected
:
86
vtkWidgetEvent
() =
default
;
87
~vtkWidgetEvent
()
override
=
default
;
88
89
private
:
90
vtkWidgetEvent
(
const
vtkWidgetEvent
&) =
delete
;
91
void
operator=(
const
vtkWidgetEvent
&) =
delete
;
92
};
93
94
VTK_ABI_NAMESPACE_END
95
#endif
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:29
vtkObject
abstract base class for most VTK objects
Definition
vtkObject.h:49
vtkWidgetEvent
define widget events
Definition
vtkWidgetEvent.h:22
vtkWidgetEvent::GetEventIdFromString
static unsigned long GetEventIdFromString(const char *event)
Convenience methods for translating between event names and event ids.
vtkWidgetEvent::New
static vtkWidgetEvent * New()
The object factory constructor.
vtkWidgetEvent::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard macros.
vtkWidgetEvent::vtkWidgetEvent
vtkWidgetEvent()=default
vtkWidgetEvent::GetStringFromEventId
static const char * GetStringFromEventId(unsigned long event)
Convenience methods for translating between event names and event ids.
vtkWidgetEvent::~vtkWidgetEvent
~vtkWidgetEvent() override=default
vtkWidgetEvent::WidgetEventIds
WidgetEventIds
All the widget events are defined here.
Definition
vtkWidgetEvent.h:41
vtkWidgetEvent::Up
@ Up
Definition
vtkWidgetEvent.h:65
vtkWidgetEvent::AddFinalPoint
@ AddFinalPoint
Definition
vtkWidgetEvent.h:57
vtkWidgetEvent::Reset
@ Reset
Definition
vtkWidgetEvent.h:64
vtkWidgetEvent::AddPoint
@ AddPoint
Definition
vtkWidgetEvent.h:56
vtkWidgetEvent::EndSelect
@ EndSelect
Definition
vtkWidgetEvent.h:44
vtkWidgetEvent::AddPoint3D
@ AddPoint3D
Definition
vtkWidgetEvent.h:72
vtkWidgetEvent::EndSelect3D
@ EndSelect3D
Definition
vtkWidgetEvent.h:70
vtkWidgetEvent::AddFinalPoint3D
@ AddFinalPoint3D
Definition
vtkWidgetEvent.h:73
vtkWidgetEvent::EndRotate
@ EndRotate
Definition
vtkWidgetEvent.h:53
vtkWidgetEvent::Translate
@ Translate
Definition
vtkWidgetEvent.h:46
vtkWidgetEvent::Right
@ Right
Definition
vtkWidgetEvent.h:68
vtkWidgetEvent::Left
@ Left
Definition
vtkWidgetEvent.h:67
vtkWidgetEvent::EndScale
@ EndScale
Definition
vtkWidgetEvent.h:49
vtkWidgetEvent::ModifyEvent
@ ModifyEvent
Definition
vtkWidgetEvent.h:63
vtkWidgetEvent::PickNormal
@ PickNormal
Definition
vtkWidgetEvent.h:60
vtkWidgetEvent::Select
@ Select
Definition
vtkWidgetEvent.h:43
vtkWidgetEvent::Move
@ Move
Definition
vtkWidgetEvent.h:54
vtkWidgetEvent::Rotate
@ Rotate
Definition
vtkWidgetEvent.h:52
vtkWidgetEvent::Scale
@ Scale
Definition
vtkWidgetEvent.h:48
vtkWidgetEvent::Resize
@ Resize
Definition
vtkWidgetEvent.h:50
vtkWidgetEvent::PickPoint
@ PickPoint
Definition
vtkWidgetEvent.h:59
vtkWidgetEvent::Down
@ Down
Definition
vtkWidgetEvent.h:66
vtkWidgetEvent::Completed
@ Completed
Definition
vtkWidgetEvent.h:58
vtkWidgetEvent::Delete
@ Delete
Definition
vtkWidgetEvent.h:45
vtkWidgetEvent::EndTranslate
@ EndTranslate
Definition
vtkWidgetEvent.h:47
vtkWidgetEvent::TimedOut
@ TimedOut
Definition
vtkWidgetEvent.h:62
vtkWidgetEvent::PickDirectionPoint
@ PickDirectionPoint
Definition
vtkWidgetEvent.h:61
vtkWidgetEvent::Move3D
@ Move3D
Definition
vtkWidgetEvent.h:71
vtkWidgetEvent::Select3D
@ Select3D
Definition
vtkWidgetEvent.h:69
vtkWidgetEvent::SizeHandles
@ SizeHandles
Definition
vtkWidgetEvent.h:55
vtkWidgetEvent::EndResize
@ EndResize
Definition
vtkWidgetEvent.h:51
vtkObject.h
Generated on Sat Feb 15 2025 13:13:19 for VTK by
1.9.8