MCPcopy Create free account
hub / github.com/Kitware/VTK / RemoveDataSetInput

Method RemoveDataSetInput

Rendering/Annotation/vtkXYPlotActor.cxx:487–503  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

485
486//------------------------------------------------------------------------------
487void 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.

Callers 1

RemoveDataSetInputFunction · 0.80

Calls 6

GetProducerMethod · 0.80
GetInputConnectionMethod · 0.45
GetOutputDataObjectMethod · 0.45
GetIndexMethod · 0.45

Tested by

no test coverage detected