------------------------------------------------------------------------------
| 155 | |
| 156 | //------------------------------------------------------------------------------ |
| 157 | int vtkHDFWriter::RequestUpdateExtent(vtkInformation* vtkNotUsed(request), |
| 158 | vtkInformationVector** inputVector, vtkInformationVector* vtkNotUsed(outputVector)) |
| 159 | { |
| 160 | if (this->Controller) |
| 161 | { |
| 162 | vtkInformation* info = inputVector[0]->GetInformationObject(0); |
| 163 | info->Set(vtkStreamingDemandDrivenPipeline::UPDATE_PIECE_NUMBER(), this->CurrentPiece); |
| 164 | info->Set(vtkStreamingDemandDrivenPipeline::UPDATE_NUMBER_OF_PIECES(), this->NbPieces); |
| 165 | } |
| 166 | |
| 167 | vtkInformation* inInfo = inputVector[0]->GetInformationObject(0); |
| 168 | if (this->WriteAllTimeSteps && inInfo->Has(vtkStreamingDemandDrivenPipeline::TIME_STEPS())) |
| 169 | { |
| 170 | inInfo->Get(vtkStreamingDemandDrivenPipeline::TIME_STEPS(), this->timeSteps.data()); |
| 171 | double timeReq = this->timeSteps[this->CurrentTimeIndex]; |
| 172 | |
| 173 | inputVector[0]->GetInformationObject(0)->Set( |
| 174 | vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP(), timeReq); |
| 175 | } |
| 176 | return 1; |
| 177 | } |
| 178 | |
| 179 | //------------------------------------------------------------------------------ |
| 180 | int vtkHDFWriter::RequestData(vtkInformation* request, |
no test coverage detected