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

Method ProgressCallback

IO/XML/vtkXMLDataObjectWriter.cxx:144–154  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

142
143//------------------------------------------------------------------------------
144void vtkXMLDataObjectWriter::ProgressCallback(vtkAlgorithm* w)
145{
146 float width = this->ProgressRange[1] - this->ProgressRange[0];
147 float internalProgress = w->GetProgress();
148 float progress = this->ProgressRange[0] + internalProgress * width;
149 this->UpdateProgressDiscrete(progress);
150 if (this->AbortExecute)
151 {
152 w->SetAbortExecute(1);
153 }
154}
155
156//------------------------------------------------------------------------------
157int vtkXMLDataObjectWriter::FillInputPortInformation(int vtkNotUsed(port), vtkInformation* info)

Callers 1

Calls 2

GetProgressMethod · 0.45

Tested by

no test coverage detected