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

Method RequestData

IO/HDF/vtkHDFWriter.cxx:180–214  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

178
179//------------------------------------------------------------------------------
180int vtkHDFWriter::RequestData(vtkInformation* request,
181 vtkInformationVector** vtkNotUsed(inputVector), vtkInformationVector* vtkNotUsed(outputVector))
182{
183 if (!this->FileName)
184 {
185 return 1;
186 }
187
188 this->WriteData();
189
190 if (this->IsTemporal)
191 {
192 if (this->CurrentTimeIndex == 0)
193 {
194 // Tell the pipeline to start looping in order to write all the timesteps
195 request->Set(vtkStreamingDemandDrivenPipeline::CONTINUE_EXECUTING(), 1);
196 }
197
198 this->CurrentTimeIndex++;
199
200 if (this->CurrentTimeIndex >= this->NumberOfTimeSteps)
201 {
202 // Tell the pipeline to stop looping.
203 request->Set(vtkStreamingDemandDrivenPipeline::CONTINUE_EXECUTING(), 0);
204 this->CurrentTimeIndex = 0;
205 this->Impl->CloseFile();
206 }
207 }
208 else
209 {
210 this->Impl->CloseFile();
211 }
212
213 return 1;
214}
215
216//------------------------------------------------------------------------------
217int vtkHDFWriter::FillInputPortInformation(int port, vtkInformation* info)

Callers 1

ProcessRequestMethod · 0.95

Calls 3

WriteDataMethod · 0.95
SetMethod · 0.45
CloseFileMethod · 0.45

Tested by

no test coverage detected