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

Method UpdateProgressDiscrete

IO/XML/vtkXMLWriter.cxx:3058–3069  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3056
3057//------------------------------------------------------------------------------
3058void vtkXMLWriter::UpdateProgressDiscrete(float progress)
3059{
3060 if (!this->AbortExecute)
3061 {
3062 // Round progress to nearest 100th.
3063 float rounded = std::round(progress * 100) / 100.f;
3064 if (this->GetProgress() != rounded)
3065 {
3066 this->UpdateProgress(rounded);
3067 }
3068 }
3069}
3070
3071//------------------------------------------------------------------------------
3072void vtkXMLWriter::WritePrimaryElementAttributes(ostream& os, vtkIndent indent)

Callers 13

RequestDataMethod · 0.95
SetProgressRangeMethod · 0.95
SetProgressPartialMethod · 0.95
ProcessRequestMethod · 0.45
PieceProgressCallbackMethod · 0.45
PieceProgressCallbackMethod · 0.45
PieceProgressCallbackMethod · 0.45
ProgressCallbackMethod · 0.45
RequestDataMethod · 0.45
ProgressCallbackMethod · 0.45
DataProgressCallbackMethod · 0.45
ReadPieceDataMethod · 0.45

Calls 3

roundFunction · 0.50
GetProgressMethod · 0.45
UpdateProgressMethod · 0.45

Tested by

no test coverage detected