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

Method GetInputExecutive

Common/ExecutionModel/vtkExecutive.cxx:246–261  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

244
245//------------------------------------------------------------------------------
246vtkExecutive* vtkExecutive::GetInputExecutive(int port, int index)
247{
248 if (index < 0 || index >= this->GetNumberOfInputConnections(port))
249 {
250 vtkErrorMacro("Attempt to get executive for connection index "
251 << index << " on input port " << port << " of algorithm "
252 << this->Algorithm->GetObjectDescription() << ", which has "
253 << this->GetNumberOfInputConnections(port) << " connections.");
254 return nullptr;
255 }
256 if (vtkAlgorithmOutput* input = this->Algorithm->GetInputConnection(port, index))
257 {
258 return input->GetProducer()->GetExecutive();
259 }
260 return nullptr;
261}
262
263//------------------------------------------------------------------------------
264void vtkExecutive::ReportReferences(vtkGarbageCollector* collector)

Callers

nothing calls this directly

Calls 5

GetProducerMethod · 0.80
GetObjectDescriptionMethod · 0.45
GetInputConnectionMethod · 0.45
GetExecutiveMethod · 0.45

Tested by

no test coverage detected