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

Method RequestUpdateExtent

IO/HDF/vtkHDFWriter.cxx:157–177  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

155
156//------------------------------------------------------------------------------
157int 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//------------------------------------------------------------------------------
180int vtkHDFWriter::RequestData(vtkInformation* request,

Callers 1

ProcessRequestMethod · 0.95

Calls 5

GetInformationObjectMethod · 0.80
SetMethod · 0.45
HasMethod · 0.45
GetMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected