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

Method GetCommand

Common/Core/vtkObject.cxx:690–706  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

688
689//------------------------------------------------------------------------------
690vtkCommand* vtkSubjectHelper::GetCommand(unsigned long tag)
691{
692 const auto it_p = this->Priorities.find(tag);
693 if (it_p == this->Priorities.end())
694 {
695 return nullptr;
696 }
697 const auto p = it_p->second;
698
699 const auto it = this->Observers.find(vtkObserverKey{ p, tag });
700 if (it == this->Observers.end())
701 {
702 this->Priorities.erase(it_p);
703 return nullptr;
704 }
705 return it->second.Command;
706}
707
708//------------------------------------------------------------------------------
709void vtkSubjectHelper::PrintSelf(ostream& os, vtkIndent indent)

Callers 4

PrintSelfMethod · 0.80
testGetCommandMethod · 0.80
PyVTKObject_TraverseFunction · 0.80
ExecuteMethod · 0.80

Calls 3

findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by 1

testGetCommandMethod · 0.64