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

Method ProgressCallback

IO/ParallelXML/vtkXMLPDataObjectWriter.cxx:345–355  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

343
344//------------------------------------------------------------------------------
345void vtkXMLPDataObjectWriter::ProgressCallback(vtkAlgorithm* w)
346{
347 float width = this->ProgressRange[1] - this->ProgressRange[0];
348 float internalProgress = w->GetProgress();
349 float progress = this->ProgressRange[0] + internalProgress * width;
350 this->UpdateProgressDiscrete(progress);
351 if (this->AbortExecute)
352 {
353 w->SetAbortExecute(1);
354 }
355}
356
357//------------------------------------------------------------------------------
358void vtkXMLPDataObjectWriter::DeleteFiles()

Callers 1

Calls 2

GetProgressMethod · 0.45

Tested by

no test coverage detected