VTK
9.1.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Interaction
Widgets
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
=========================================================================*/
132
#ifndef vtkWidgetEvent_h
133
#define vtkWidgetEvent_h
134
135
#include "vtkInteractionWidgetsModule.h"
// For export macro
136
#include "
vtkObject.h
"
137
138
class
VTKINTERACTIONWIDGETS_EXPORT
vtkWidgetEvent
:
public
vtkObject
139
{
140
public
:
144
static
vtkWidgetEvent
*
New
();
145
147
150
vtkTypeMacro(
vtkWidgetEvent
,
vtkObject
);
151
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
153
157
enum
WidgetEventIds
158
{
159
NoEvent = 0,
160
Select
,
161
EndSelect
,
162
Delete
,
163
Translate
,
164
EndTranslate
,
165
Scale
,
166
EndScale
,
167
Resize
,
168
EndResize
,
169
Rotate
,
170
EndRotate
,
171
Move
,
172
SizeHandles
,
173
AddPoint
,
174
AddFinalPoint
,
175
Completed
,
176
TimedOut
,
177
ModifyEvent
,
178
Reset
,
179
Up
,
180
Down
,
181
Left
,
182
Right
,
183
Select3D
,
184
EndSelect3D
,
185
Move3D
,
186
AddPoint3D
,
187
AddFinalPoint3D
,
188
HoverLeave
189
};
190
192
195
static
const
char
*
GetStringFromEventId
(
unsigned
long
event);
196
static
unsigned
long
GetEventIdFromString
(
const
char
* event);
198
199
protected
:
200
vtkWidgetEvent
() =
default
;
201
~vtkWidgetEvent
()
override
=
default
;
202
203
private
:
204
vtkWidgetEvent
(
const
vtkWidgetEvent
&) =
delete
;
205
void
operator=(
const
vtkWidgetEvent
&) =
delete
;
206
};
207
208
#endif
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:113
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:73
vtkWidgetEvent
define widget events
Definition:
vtkWidgetEvent.h:139
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:158
vtkWidgetEvent::Up
@ Up
Definition:
vtkWidgetEvent.h:179
vtkWidgetEvent::AddFinalPoint
@ AddFinalPoint
Definition:
vtkWidgetEvent.h:174
vtkWidgetEvent::Reset
@ Reset
Definition:
vtkWidgetEvent.h:178
vtkWidgetEvent::AddPoint
@ AddPoint
Definition:
vtkWidgetEvent.h:173
vtkWidgetEvent::EndSelect
@ EndSelect
Definition:
vtkWidgetEvent.h:161
vtkWidgetEvent::AddPoint3D
@ AddPoint3D
Definition:
vtkWidgetEvent.h:186
vtkWidgetEvent::EndSelect3D
@ EndSelect3D
Definition:
vtkWidgetEvent.h:184
vtkWidgetEvent::AddFinalPoint3D
@ AddFinalPoint3D
Definition:
vtkWidgetEvent.h:187
vtkWidgetEvent::EndRotate
@ EndRotate
Definition:
vtkWidgetEvent.h:170
vtkWidgetEvent::Translate
@ Translate
Definition:
vtkWidgetEvent.h:163
vtkWidgetEvent::Right
@ Right
Definition:
vtkWidgetEvent.h:182
vtkWidgetEvent::Left
@ Left
Definition:
vtkWidgetEvent.h:181
vtkWidgetEvent::EndScale
@ EndScale
Definition:
vtkWidgetEvent.h:166
vtkWidgetEvent::ModifyEvent
@ ModifyEvent
Definition:
vtkWidgetEvent.h:177
vtkWidgetEvent::Select
@ Select
Definition:
vtkWidgetEvent.h:160
vtkWidgetEvent::Move
@ Move
Definition:
vtkWidgetEvent.h:171
vtkWidgetEvent::Rotate
@ Rotate
Definition:
vtkWidgetEvent.h:169
vtkWidgetEvent::Scale
@ Scale
Definition:
vtkWidgetEvent.h:165
vtkWidgetEvent::Resize
@ Resize
Definition:
vtkWidgetEvent.h:167
vtkWidgetEvent::Down
@ Down
Definition:
vtkWidgetEvent.h:180
vtkWidgetEvent::Completed
@ Completed
Definition:
vtkWidgetEvent.h:175
vtkWidgetEvent::Delete
@ Delete
Definition:
vtkWidgetEvent.h:162
vtkWidgetEvent::EndTranslate
@ EndTranslate
Definition:
vtkWidgetEvent.h:164
vtkWidgetEvent::TimedOut
@ TimedOut
Definition:
vtkWidgetEvent.h:176
vtkWidgetEvent::Move3D
@ Move3D
Definition:
vtkWidgetEvent.h:185
vtkWidgetEvent::Select3D
@ Select3D
Definition:
vtkWidgetEvent.h:183
vtkWidgetEvent::SizeHandles
@ SizeHandles
Definition:
vtkWidgetEvent.h:172
vtkWidgetEvent::EndResize
@ EndResize
Definition:
vtkWidgetEvent.h:168
vtkObject.h
Generated on Sat Feb 25 2023 08:59:35 for VTK by
1.9.4