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

Method GetInputData

Common/ExecutionModel/vtkExecutive.cxx:461–481  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

459
460//------------------------------------------------------------------------------
461vtkDataObject* vtkExecutive::GetInputData(int port, int index)
462{
463 if (index < 0 || index >= this->GetNumberOfInputConnections(port))
464 {
465 return nullptr;
466 }
467
468 vtkInformationVector* inVector = this->GetInputInformation()[port];
469 vtkInformation* info = inVector->GetInformationObject(index);
470 vtkExecutive* e;
471 int producerPort;
472 vtkExecutive::PRODUCER()->Get(info, e, producerPort);
473 if (e)
474 {
475 return e->GetOutputData(producerPort);
476 }
477 else
478 {
479 return nullptr;
480 }
481}
482
483//------------------------------------------------------------------------------
484vtkDataObject* vtkExecutive::GetInputData(int port, int index, vtkInformationVector** inInfoVec)

Callers 15

GetInputMethod · 0.45
GetInputMethod · 0.45
GetInputMethod · 0.45
RequestDataMethod · 0.45
WriteMethod · 0.45
GetInputMethod · 0.45
WriteMethod · 0.45
GetSourceMethod · 0.45
GetInputDataObjectMethod · 0.45
GetInputMethod · 0.45
GetInputMethod · 0.45
GetInputMethod · 0.45

Calls 5

GetInformationObjectMethod · 0.80
GetInputInformationMethod · 0.45
GetMethod · 0.45
GetOutputDataMethod · 0.45

Tested by 2

RequestDataMethod · 0.36
RegressionTestMethod · 0.36