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

Method AddDataObjectInputConnection

Rendering/Annotation/vtkXYPlotActor.cxx:560–574  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

558
559//------------------------------------------------------------------------------
560void 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.

Callers 3

AddDataObjectInputMethod · 0.95
xyPlot2.pyFile · 0.80
xyPlot3.pyFile · 0.80

Calls 3

GetInputConnectionMethod · 0.45
AddInputConnectionMethod · 0.45

Tested by

no test coverage detected