------------------------------------------------------------------------------
| 1598 | |
| 1599 | //------------------------------------------------------------------------------ |
| 1600 | vtkExecutive* 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 | //------------------------------------------------------------------------------ |
| 1622 | vtkAlgorithmOutput* vtkAlgorithm::GetInputConnection(int port, int index) |
no test coverage detected