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

Method GetInputExecutive

Common/ExecutionModel/vtkAlgorithm.cxx:1600–1619  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1598
1599//------------------------------------------------------------------------------
1600vtkExecutive* vtkAlgorithm::GetInputExecutive(int port, int index)
1601{
1602 if (index < 0 || index >= this->GetNumberOfInputConnections(port))
1603 {
1604 vtkErrorMacro("Attempt to get connection index "
1605 << index << " for input port " << port << ", which has "
1606 << this->GetNumberOfInputConnections(port) << " connections.");
1607 return nullptr;
1608 }
1609 if (vtkInformation* info = this->GetExecutive()->GetInputInformation(port, index))
1610 {
1611 // Get the executive producing this input. If there is none, then
1612 // it is a nullptr input.
1613 vtkExecutive* producer;
1614 int producerPort;
1615 vtkExecutive::PRODUCER()->Get(info, producer, producerPort);
1616 return producer;
1617 }
1618 return nullptr;
1619}
1620
1621//------------------------------------------------------------------------------
1622vtkAlgorithmOutput* vtkAlgorithm::GetInputConnection(int port, int index)

Callers 10

WriteMethod · 0.45
WriteMethod · 0.45
vtkTIFFWriter.cxxFile · 0.45
vtkPNGWriter.cxxFile · 0.45
WriteMethod · 0.45
OpenVTKFileMethod · 0.45
GetInputExecutiveFunction · 0.45
ForwardUpstreamMethod · 0.45
ComputePipelineMTimeMethod · 0.45
GetMTimeMethod · 0.45

Calls 4

GetExecutiveMethod · 0.95
GetInputInformationMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected