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

Method ProgressCallback

IO/XML/vtkXMLCompositeDataWriter.cxx:559–569  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

557
558//------------------------------------------------------------------------------
559void vtkXMLCompositeDataWriter::ProgressCallback(vtkAlgorithm* w)
560{
561 float width = this->ProgressRange[1] - this->ProgressRange[0];
562 float internalProgress = w->GetProgress();
563 float progress = this->ProgressRange[0] + internalProgress * width;
564 this->UpdateProgressDiscrete(progress);
565 if (this->AbortExecute)
566 {
567 w->SetAbortExecute(1);
568 }
569}
570
571//------------------------------------------------------------------------------
572vtkStdString vtkXMLCompositeDataWriter::CreatePieceFileName(int piece)

Callers 1

Calls 2

GetProgressMethod · 0.45

Tested by

no test coverage detected