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

Method UpdateProgressDiscrete

IO/XML/vtkXMLReader.cxx:2062–2073  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2060
2061//------------------------------------------------------------------------------
2062void vtkXMLReader::UpdateProgressDiscrete(float progress)
2063{
2064 if (!this->AbortExecute)
2065 {
2066 // Round progress to nearest 100th.
2067 float rounded = std::round(progress * 100) / 100.f;
2068 if (this->GetProgress() != rounded)
2069 {
2070 this->UpdateProgress(rounded);
2071 }
2072 }
2073}
2074
2075//------------------------------------------------------------------------------
2076vtkTypeBool vtkXMLReader::ProcessRequest(

Callers 2

RequestDataMethod · 0.95
SetProgressRangeMethod · 0.95

Calls 3

roundFunction · 0.50
GetProgressMethod · 0.45
UpdateProgressMethod · 0.45

Tested by

no test coverage detected