------------------------------------------------------------------------------
| 67 | |
| 68 | //------------------------------------------------------------------------------ |
| 69 | int 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 | //------------------------------------------------------------------------------ |
| 98 | void vtkTransmitStructuredDataPiece::RootExecute( |
nothing calls this directly
no test coverage detected