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

Method GetOutputPort

Common/ExecutionModel/vtkAlgorithm.cxx:1520–1537  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1518
1519//------------------------------------------------------------------------------
1520vtkAlgorithmOutput* vtkAlgorithm::GetOutputPort(int port)
1521{
1522 if (!this->OutputPortIndexInRange(port, "get"))
1523 {
1524 return nullptr;
1525 }
1526
1527 // Create the vtkAlgorithmOutput proxy object if there is not one.
1528 if (!this->AlgorithmInternal->Outputs[port])
1529 {
1530 this->AlgorithmInternal->Outputs[port] = vtkSmartPointer<vtkAlgorithmOutput>::New();
1531 this->AlgorithmInternal->Outputs[port]->SetProducer(this);
1532 this->AlgorithmInternal->Outputs[port]->SetIndex(port);
1533 }
1534
1535 // Return the proxy object instance.
1536 return this->AlgorithmInternal->Outputs[port];
1537}
1538
1539//------------------------------------------------------------------------------
1540int vtkAlgorithm::GetNumberOfInputConnections(int port)

Callers 15

TestFunction · 0.45
TestPIOReader.pyFile · 0.45
TestChacoReader.pyFile · 0.45
Plot3DScalars.pyFile · 0.45
Plot3DVectors.pyFile · 0.45
TestPlot3DMeta.pyFile · 0.45
testHexaPenta.pyFile · 0.45

Calls 4

SetProducerMethod · 0.80
NewFunction · 0.50
SetIndexMethod · 0.45

Tested by 15

TestFunction · 0.36
TestOBJReaderDoubleFunction · 0.36
TestPTSReaderFunction · 0.36
TestSTLReaderStreamFunction · 0.36
TestTecplotReaderFunction · 0.36
TestMFIXReaderFunction · 0.36
TestSTLReaderFunction · 0.36
TestWindBladeReaderFunction · 0.36