------------------------------------------------------------------------------
| 459 | |
| 460 | //------------------------------------------------------------------------------ |
| 461 | vtkDataObject* vtkExecutive::GetInputData(int port, int index) |
| 462 | { |
| 463 | if (index < 0 || index >= this->GetNumberOfInputConnections(port)) |
| 464 | { |
| 465 | return nullptr; |
| 466 | } |
| 467 | |
| 468 | vtkInformationVector* inVector = this->GetInputInformation()[port]; |
| 469 | vtkInformation* info = inVector->GetInformationObject(index); |
| 470 | vtkExecutive* e; |
| 471 | int producerPort; |
| 472 | vtkExecutive::PRODUCER()->Get(info, e, producerPort); |
| 473 | if (e) |
| 474 | { |
| 475 | return e->GetOutputData(producerPort); |
| 476 | } |
| 477 | else |
| 478 | { |
| 479 | return nullptr; |
| 480 | } |
| 481 | } |
| 482 | |
| 483 | //------------------------------------------------------------------------------ |
| 484 | vtkDataObject* vtkExecutive::GetInputData(int port, int index, vtkInformationVector** inInfoVec) |