------------------------------------------------------------------------------
| 1518 | |
| 1519 | //------------------------------------------------------------------------------ |
| 1520 | vtkAlgorithmOutput* vtkAlgorithm::GetOutputPort(int port) |
| 1521 | { |
| 1522 | if (!this->OutputPortIndexInRange(port, "get")) |
| 1523 | { |
| 1524 | return nullptr; |
| 1525 | } |
| 1526 | |
| 1527 | // Create the vtkAlgorithmOutput proxy object if there is not one. |
| 1528 | if (!this->AlgorithmInternal->Outputs[port]) |
| 1529 | { |
| 1530 | this->AlgorithmInternal->Outputs[port] = vtkSmartPointer<vtkAlgorithmOutput>::New(); |
| 1531 | this->AlgorithmInternal->Outputs[port]->SetProducer(this); |
| 1532 | this->AlgorithmInternal->Outputs[port]->SetIndex(port); |
| 1533 | } |
| 1534 | |
| 1535 | // Return the proxy object instance. |
| 1536 | return this->AlgorithmInternal->Outputs[port]; |
| 1537 | } |
| 1538 | |
| 1539 | //------------------------------------------------------------------------------ |
| 1540 | int vtkAlgorithm::GetNumberOfInputConnections(int port) |