------------------------------------------------------------------------------
| 485 | |
| 486 | //------------------------------------------------------------------------------ |
| 487 | void vtkXYPlotActor::RemoveDataSetInput(vtkDataSet* ds, const char* arrayName, int component) |
| 488 | { |
| 489 | int numConns = this->InputConnectionHolder->GetNumberOfInputConnections(0); |
| 490 | for (int idx = 0; idx < numConns; idx++) |
| 491 | { |
| 492 | vtkAlgorithmOutput* aout = this->InputConnectionHolder->GetInputConnection(0, idx); |
| 493 | vtkAlgorithm* alg = aout ? aout->GetProducer() : nullptr; |
| 494 | if (alg) |
| 495 | { |
| 496 | if (ds == alg->GetOutputDataObject(aout->GetIndex())) |
| 497 | { |
| 498 | this->RemoveDataSetInputConnection(aout, arrayName, component); |
| 499 | return; |
| 500 | } |
| 501 | } |
| 502 | } |
| 503 | } |
| 504 | |
| 505 | //------------------------------------------------------------------------------ |
| 506 | // Remove a dataset from the list of data to plot. |
no test coverage detected