------------------------------------------------------------------------------
| 558 | |
| 559 | //------------------------------------------------------------------------------ |
| 560 | void vtkXYPlotActor::AddDataObjectInputConnection(vtkAlgorithmOutput* aout) |
| 561 | { |
| 562 | // Return if the connection already exists |
| 563 | int numDO = this->DataObjectInputConnectionHolder->GetNumberOfInputConnections(0); |
| 564 | for (int i = 0; i < numDO; i++) |
| 565 | { |
| 566 | vtkAlgorithmOutput* port = this->DataObjectInputConnectionHolder->GetInputConnection(0, i); |
| 567 | if (port == aout) |
| 568 | { |
| 569 | return; |
| 570 | } |
| 571 | } |
| 572 | |
| 573 | this->DataObjectInputConnectionHolder->AddInputConnection(aout); |
| 574 | } |
| 575 | |
| 576 | //------------------------------------------------------------------------------ |
| 577 | // Add a data object to the list of data to plot. |
no test coverage detected