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

Method RequestData

Filters/Parallel/vtkTransmitStructuredDataPiece.cxx:69–95  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

67
68//------------------------------------------------------------------------------
69int vtkTransmitStructuredDataPiece::RequestData(vtkInformation* vtkNotUsed(request),
70 vtkInformationVector** inputVector, vtkInformationVector* outputVector)
71{
72 vtkInformation* outInfo = outputVector->GetInformationObject(0);
73 vtkDataSet* output = vtkDataSet::GetData(outputVector);
74
75 int procId;
76
77 if (this->Controller == nullptr)
78 {
79 vtkErrorMacro("Could not find Controller.");
80 return 1;
81 }
82
83 procId = this->Controller->GetLocalProcessId();
84 if (procId == 0)
85 {
86 vtkDataSet* input = vtkDataSet::GetData(inputVector[0]);
87 this->RootExecute(input, output, outInfo);
88 }
89 else
90 {
91 this->SatelliteExecute(procId, output, outInfo);
92 }
93
94 return 1;
95}
96
97//------------------------------------------------------------------------------
98void vtkTransmitStructuredDataPiece::RootExecute(

Callers

nothing calls this directly

Calls 5

RootExecuteMethod · 0.95
SatelliteExecuteMethod · 0.95
GetInformationObjectMethod · 0.80
GetDataFunction · 0.50
GetLocalProcessIdMethod · 0.45

Tested by

no test coverage detected