222#include "vtkCommonCoreModule.h"
230#define vtkAllEventsMacro() \
231 _vtk_add_event(AnyEvent) \
232 _vtk_add_event(DeleteEvent) \
233 _vtk_add_event(StartEvent) \
234 _vtk_add_event(EndEvent) \
235 _vtk_add_event(RenderEvent) \
236 _vtk_add_event(ProgressEvent) \
237 _vtk_add_event(PickEvent) \
238 _vtk_add_event(StartPickEvent) \
239 _vtk_add_event(EndPickEvent) \
240 _vtk_add_event(AbortCheckEvent) \
241 _vtk_add_event(ExitEvent) \
242 _vtk_add_event(LeftButtonPressEvent) \
243 _vtk_add_event(LeftButtonReleaseEvent) \
244 _vtk_add_event(MiddleButtonPressEvent) \
245 _vtk_add_event(MiddleButtonReleaseEvent) \
246 _vtk_add_event(RightButtonPressEvent) \
247 _vtk_add_event(RightButtonReleaseEvent) \
248 _vtk_add_event(EnterEvent) \
249 _vtk_add_event(LeaveEvent) \
250 _vtk_add_event(KeyPressEvent) \
251 _vtk_add_event(KeyReleaseEvent) \
252 _vtk_add_event(CharEvent) \
253 _vtk_add_event(ExposeEvent) \
254 _vtk_add_event(ConfigureEvent) \
255 _vtk_add_event(TimerEvent) \
256 _vtk_add_event(MouseMoveEvent) \
257 _vtk_add_event(MouseWheelForwardEvent) \
258 _vtk_add_event(MouseWheelBackwardEvent) \
259 _vtk_add_event(ActiveCameraEvent) \
260 _vtk_add_event(CreateCameraEvent) \
261 _vtk_add_event(ResetCameraEvent) \
262 _vtk_add_event(ResetCameraClippingRangeEvent) \
263 _vtk_add_event(ModifiedEvent) \
264 _vtk_add_event(WindowLevelEvent) \
265 _vtk_add_event(StartWindowLevelEvent) \
266 _vtk_add_event(EndWindowLevelEvent) \
267 _vtk_add_event(ResetWindowLevelEvent) \
268 _vtk_add_event(SetOutputEvent) \
269 _vtk_add_event(ErrorEvent) \
270 _vtk_add_event(WarningEvent) \
271 _vtk_add_event(StartInteractionEvent) \
272 _vtk_add_event(DropFilesEvent) \
273 _vtk_add_event(UpdateDropLocationEvent) \
275 _vtk_add_event(InteractionEvent) \
276 _vtk_add_event(EndInteractionEvent) \
277 _vtk_add_event(EnableEvent) \
278 _vtk_add_event(DisableEvent) \
279 _vtk_add_event(CreateTimerEvent) \
280 _vtk_add_event(DestroyTimerEvent) \
281 _vtk_add_event(PlacePointEvent) \
282 _vtk_add_event(DeletePointEvent) \
283 _vtk_add_event(PlaceWidgetEvent) \
284 _vtk_add_event(CursorChangedEvent) \
285 _vtk_add_event(ExecuteInformationEvent) \
286 _vtk_add_event(RenderWindowMessageEvent) \
287 _vtk_add_event(WrongTagEvent) \
288 _vtk_add_event(StartAnimationCueEvent) \
289 _vtk_add_event(ResliceAxesChangedEvent) \
291 _vtk_add_event(AnimationCueTickEvent) \
292 _vtk_add_event(EndAnimationCueEvent) \
293 _vtk_add_event(VolumeMapperRenderEndEvent) \
294 _vtk_add_event(VolumeMapperRenderProgressEvent) \
295 _vtk_add_event(VolumeMapperRenderStartEvent) \
296 _vtk_add_event(VolumeMapperComputeGradientsEndEvent) \
297 _vtk_add_event(VolumeMapperComputeGradientsProgressEvent) \
298 _vtk_add_event(VolumeMapperComputeGradientsStartEvent) \
299 _vtk_add_event(WidgetModifiedEvent) \
300 _vtk_add_event(WidgetValueChangedEvent) \
301 _vtk_add_event(WidgetActivateEvent) \
302 _vtk_add_event(ConnectionCreatedEvent) \
303 _vtk_add_event(ConnectionClosedEvent) \
304 _vtk_add_event(DomainModifiedEvent) \
305 _vtk_add_event(PropertyModifiedEvent) \
306 _vtk_add_event(UpdateEvent) \
307 _vtk_add_event(RegisterEvent) \
308 _vtk_add_event(UnRegisterEvent) \
309 _vtk_add_event(UpdateInformationEvent) \
310 _vtk_add_event(AnnotationChangedEvent) \
311 _vtk_add_event(SelectionChangedEvent) \
312 _vtk_add_event(UpdatePropertyEvent) \
313 _vtk_add_event(ViewProgressEvent) \
314 _vtk_add_event(UpdateDataEvent) \
315 _vtk_add_event(CurrentChangedEvent) \
316 _vtk_add_event(ComputeVisiblePropBoundsEvent) \
317 _vtk_add_event(TDxMotionEvent) \
319 _vtk_add_event(TDxButtonPressEvent) \
321 _vtk_add_event(TDxButtonReleaseEvent) \
323 _vtk_add_event(HoverEvent) \
324 _vtk_add_event(LoadStateEvent) \
325 _vtk_add_event(SaveStateEvent) \
326 _vtk_add_event(StateChangedEvent) \
327 _vtk_add_event(WindowMakeCurrentEvent) \
328 _vtk_add_event(WindowIsCurrentEvent) \
329 _vtk_add_event(WindowFrameEvent) \
330 _vtk_add_event(HighlightEvent) \
331 _vtk_add_event(WindowSupportsOpenGLEvent) \
332 _vtk_add_event(WindowIsDirectEvent) \
333 _vtk_add_event(WindowStereoTypeChangedEvent) \
334 _vtk_add_event(WindowResizeEvent) \
335 _vtk_add_event(UncheckedPropertyModifiedEvent) \
336 _vtk_add_event(UpdateShaderEvent) \
337 _vtk_add_event(MessageEvent) \
338 _vtk_add_event(StartSwipeEvent) \
339 _vtk_add_event(SwipeEvent) \
340 _vtk_add_event(EndSwipeEvent) \
341 _vtk_add_event(StartPinchEvent) \
342 _vtk_add_event(PinchEvent) \
343 _vtk_add_event(EndPinchEvent) \
344 _vtk_add_event(StartRotateEvent) \
345 _vtk_add_event(RotateEvent) \
346 _vtk_add_event(EndRotateEvent) \
347 _vtk_add_event(StartPanEvent) \
348 _vtk_add_event(PanEvent) \
349 _vtk_add_event(EndPanEvent) \
350 _vtk_add_event(TapEvent) \
351 _vtk_add_event(LongTapEvent) \
352 _vtk_add_event(FourthButtonPressEvent) \
353 _vtk_add_event(FourthButtonReleaseEvent) \
354 _vtk_add_event(FifthButtonPressEvent) \
355 _vtk_add_event(FifthButtonReleaseEvent) \
356 _vtk_add_event(Move3DEvent) \
357 _vtk_add_event(Button3DEvent) \
358 _vtk_add_event(TextEvent) \
359 _vtk_add_event(LeftButtonDoubleClickEvent) \
360 _vtk_add_event(MiddleButtonDoubleClickEvent) \
361 _vtk_add_event(RightButtonDoubleClickEvent) \
362 _vtk_add_event(MouseWheelLeftEvent) \
363 _vtk_add_event(MouseWheelRightEvent) \
364 _vtk_add_event(ViewerMovement3DEvent) \
365 _vtk_add_event(Menu3DEvent) \
366 _vtk_add_event(NextPose3DEvent) \
367 _vtk_add_event(Clip3DEvent) \
368 _vtk_add_event(PositionProp3DEvent) \
369 _vtk_add_event(Pick3DEvent) \
370 _vtk_add_event(Select3DEvent) \
371 _vtk_add_event(Elevation3DEvent)
374#define vtkEventDeclarationMacro(_enum_name) \
378 vtkAllEventsMacro() UserEvent = 1000 \
382VTK_ABI_NAMESPACE_BEGIN
394 using Superclass::UnRegister;
450#define _vtk_add_event(Enum) Enum,
461 friend class vtkSubjectHelper;
470 const char* GetDebugClassName() const final;
superclass for callback/observer methods
static bool EventHasData(unsigned long event)
Does this event type contain vtkEventData.
static const char * GetStringFromEventId(unsigned long event)
Convenience methods for translating between event names and event ids.
vtkTypeBool PassiveObserver
vtkTypeBool GetPassiveObserver()
vtkBaseTypeMacro(vtkCommand, vtkObjectBase)
void PassiveObserverOff()
void SetAbortFlag(vtkTypeBool f)
Set/Get the abort flag.
vtkTypeBool GetAbortFlag()
virtual void Execute(vtkObject *caller, unsigned long eventId, void *callData)=0
All derived classes of vtkCommand must implement this method.
~vtkCommand() override=default
void UnRegister()
Decrease the reference count (release by another object).
void operator=(const vtkCommand &)
void SetPassiveObserver(vtkTypeBool f)
Set/Get the passive observer flag.
static unsigned long GetEventIdFromString(const char *event)
Convenience methods for translating between event names and event ids.
vtkCommand(const vtkCommand &c)
abstract base class for most VTK objects
abstract base class for most VTK objects
#define vtkEventDeclarationMacro(_enum_name)