MCPcopy Create free account
hub / github.com/Kitware/VTK / HasObserver

Method HasObserver

Common/Core/vtkObject.cxx:500–510  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

498
499//------------------------------------------------------------------------------
500vtkTypeBool vtkSubjectHelper::HasObserver(unsigned long event)
501{
502 for (auto& [key, obs] : this->Observers)
503 {
504 if (obs.Event == event || obs.Event == vtkCommand::AnyEvent)
505 {
506 return 1;
507 }
508 }
509 return 0;
510}
511
512//------------------------------------------------------------------------------
513vtkTypeBool vtkSubjectHelper::HasObserver(unsigned long event, vtkCommand* cmd)

Callers 15

GetReaderOfTypeMethod · 0.80
OnTimerMethod · 0.80
OnKeyPressMethod · 0.80
OnKeyReleaseMethod · 0.80
OnCharMethod · 0.80
OnRightButtonDownMethod · 0.80
OnRightButtonUpMethod · 0.80
OnMouseWheelForwardMethod · 0.80
OnMouseWheelBackwardMethod · 0.80
OnMiddleButtonDownMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected