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

Method SetDefaultExecutivePrototype

Common/ExecutionModel/vtkAlgorithm.cxx:1157–1173  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1155
1156//------------------------------------------------------------------------------
1157void vtkAlgorithm::SetDefaultExecutivePrototype(vtkExecutive* proto)
1158{
1159 if (vtkAlgorithm::DefaultExecutivePrototype == proto)
1160 {
1161 return;
1162 }
1163 if (vtkAlgorithm::DefaultExecutivePrototype)
1164 {
1165 vtkAlgorithm::DefaultExecutivePrototype->UnRegister(nullptr);
1166 vtkAlgorithm::DefaultExecutivePrototype = nullptr;
1167 }
1168 if (proto)
1169 {
1170 proto->Register(nullptr);
1171 }
1172 vtkAlgorithm::DefaultExecutivePrototype = proto;
1173}
1174
1175//------------------------------------------------------------------------------
1176vtkExecutive* vtkAlgorithm::CreateDefaultExecutive()

Calls 2

UnRegisterMethod · 0.45
RegisterMethod · 0.45

Tested by

no test coverage detected