228 #include "vtkCommonCoreModule.h" 235 #define vtkAllEventsMacro() \ 236 _vtk_add_event(AnyEvent)\ 237 _vtk_add_event(DeleteEvent)\ 238 _vtk_add_event(StartEvent)\ 239 _vtk_add_event(EndEvent)\ 240 _vtk_add_event(RenderEvent)\ 241 _vtk_add_event(ProgressEvent)\ 242 _vtk_add_event(PickEvent)\ 243 _vtk_add_event(StartPickEvent)\ 244 _vtk_add_event(EndPickEvent)\ 245 _vtk_add_event(AbortCheckEvent)\ 246 _vtk_add_event(ExitEvent)\ 247 _vtk_add_event(LeftButtonPressEvent)\ 248 _vtk_add_event(LeftButtonReleaseEvent)\ 249 _vtk_add_event(MiddleButtonPressEvent)\ 250 _vtk_add_event(MiddleButtonReleaseEvent)\ 251 _vtk_add_event(RightButtonPressEvent)\ 252 _vtk_add_event(RightButtonReleaseEvent)\ 253 _vtk_add_event(EnterEvent)\ 254 _vtk_add_event(LeaveEvent)\ 255 _vtk_add_event(KeyPressEvent)\ 256 _vtk_add_event(KeyReleaseEvent)\ 257 _vtk_add_event(CharEvent)\ 258 _vtk_add_event(ExposeEvent)\ 259 _vtk_add_event(ConfigureEvent)\ 260 _vtk_add_event(TimerEvent)\ 261 _vtk_add_event(MouseMoveEvent)\ 262 _vtk_add_event(MouseWheelForwardEvent)\ 263 _vtk_add_event(MouseWheelBackwardEvent)\ 264 _vtk_add_event(ActiveCameraEvent)\ 265 _vtk_add_event(CreateCameraEvent)\ 266 _vtk_add_event(ResetCameraEvent)\ 267 _vtk_add_event(ResetCameraClippingRangeEvent)\ 268 _vtk_add_event(ModifiedEvent)\ 269 _vtk_add_event(WindowLevelEvent)\ 270 _vtk_add_event(StartWindowLevelEvent)\ 271 _vtk_add_event(EndWindowLevelEvent)\ 272 _vtk_add_event(ResetWindowLevelEvent)\ 273 _vtk_add_event(SetOutputEvent)\ 274 _vtk_add_event(ErrorEvent)\ 275 _vtk_add_event(WarningEvent)\ 276 _vtk_add_event(StartInteractionEvent)\ 278 _vtk_add_event(InteractionEvent)\ 279 _vtk_add_event(EndInteractionEvent)\ 280 _vtk_add_event(EnableEvent)\ 281 _vtk_add_event(DisableEvent)\ 282 _vtk_add_event(CreateTimerEvent)\ 283 _vtk_add_event(DestroyTimerEvent)\ 284 _vtk_add_event(PlacePointEvent)\ 285 _vtk_add_event(DeletePointEvent)\ 286 _vtk_add_event(PlaceWidgetEvent)\ 287 _vtk_add_event(CursorChangedEvent)\ 288 _vtk_add_event(ExecuteInformationEvent)\ 289 _vtk_add_event(RenderWindowMessageEvent)\ 290 _vtk_add_event(WrongTagEvent)\ 291 _vtk_add_event(StartAnimationCueEvent)\ 292 _vtk_add_event(ResliceAxesChangedEvent)\ 294 _vtk_add_event(AnimationCueTickEvent)\ 295 _vtk_add_event(EndAnimationCueEvent)\ 296 _vtk_add_event(VolumeMapperRenderEndEvent)\ 297 _vtk_add_event(VolumeMapperRenderProgressEvent)\ 298 _vtk_add_event(VolumeMapperRenderStartEvent)\ 299 _vtk_add_event(VolumeMapperComputeGradientsEndEvent)\ 300 _vtk_add_event(VolumeMapperComputeGradientsProgressEvent)\ 301 _vtk_add_event(VolumeMapperComputeGradientsStartEvent)\ 302 _vtk_add_event(WidgetModifiedEvent)\ 303 _vtk_add_event(WidgetValueChangedEvent)\ 304 _vtk_add_event(WidgetActivateEvent)\ 305 _vtk_add_event(ConnectionCreatedEvent)\ 306 _vtk_add_event(ConnectionClosedEvent)\ 307 _vtk_add_event(DomainModifiedEvent)\ 308 _vtk_add_event(PropertyModifiedEvent)\ 309 _vtk_add_event(UpdateEvent)\ 310 _vtk_add_event(RegisterEvent)\ 311 _vtk_add_event(UnRegisterEvent)\ 312 _vtk_add_event(UpdateInformationEvent)\ 313 _vtk_add_event(AnnotationChangedEvent)\ 314 _vtk_add_event(SelectionChangedEvent)\ 315 _vtk_add_event(UpdatePropertyEvent)\ 316 _vtk_add_event(ViewProgressEvent)\ 317 _vtk_add_event(UpdateDataEvent)\ 318 _vtk_add_event(CurrentChangedEvent)\ 319 _vtk_add_event(ComputeVisiblePropBoundsEvent)\ 320 _vtk_add_event(TDxMotionEvent)\ 322 _vtk_add_event(TDxButtonPressEvent)\ 324 _vtk_add_event(TDxButtonReleaseEvent)\ 326 _vtk_add_event(HoverEvent)\ 327 _vtk_add_event(LoadStateEvent)\ 328 _vtk_add_event(SaveStateEvent)\ 329 _vtk_add_event(StateChangedEvent)\ 330 _vtk_add_event(WindowMakeCurrentEvent)\ 331 _vtk_add_event(WindowIsCurrentEvent)\ 332 _vtk_add_event(WindowFrameEvent)\ 333 _vtk_add_event(HighlightEvent)\ 334 _vtk_add_event(WindowSupportsOpenGLEvent)\ 335 _vtk_add_event(WindowIsDirectEvent)\ 336 _vtk_add_event(WindowStereoTypeChangedEvent)\ 337 _vtk_add_event(WindowResizeEvent)\ 338 _vtk_add_event(UncheckedPropertyModifiedEvent)\ 339 _vtk_add_event(UpdateShaderEvent)\ 340 _vtk_add_event(MessageEvent)\ 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(SwipeEvent)\ 353 _vtk_add_event(FourthButtonPressEvent)\ 354 _vtk_add_event(FourthButtonReleaseEvent)\ 355 _vtk_add_event(FifthButtonPressEvent)\ 356 _vtk_add_event(FifthButtonReleaseEvent)\ 357 _vtk_add_event(Move3DEvent)\ 358 _vtk_add_event(Button3DEvent)\ 359 _vtk_add_event(TextEvent) 361 #define vtkEventDeclarationMacro(_enum_name)\ 364 vtkAllEventsMacro() \ 396 virtual void Execute(
vtkObject *caller,
unsigned long eventId,
404 static const char *GetStringFromEventId(
unsigned long event);
405 static unsigned long GetEventIdFromString(
const char *event);
411 static bool EventHasData(
unsigned long event);
418 { this->AbortFlag = f; }
420 {
return this->AbortFlag; }
422 { this->SetAbortFlag(1); }
424 { this->SetAbortFlag(0); }
433 { this->PassiveObserver = f; }
435 {
return this->PassiveObserver; }
437 { this->SetPassiveObserver(1); }
439 { this->SetPassiveObserver(0); }
447 #define _vtk_add_event(Enum) Enum, 449 #undef _vtk_add_event 458 friend class vtkSubjectHelper;
void SetPassiveObserver(int f)
Set/Get the passive observer flag.
void operator=(const vtkCommand &)
abstract base class for most VTK objects
void UnRegister(vtkObjectBase *) override
Decrease the reference count (release by another object).
vtkCommand(const vtkCommand &c)
void SetAbortFlag(int f)
Set/Get the abort flag.
superclass for callback/observer methods
virtual void UnRegister(vtkObjectBase *o)
Decrease the reference count (release by another object).
void PassiveObserverOff()
abstract base class for most VTK objects
#define vtkEventDeclarationMacro(_enum_name)