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

Method ReportProgress

Imaging/Core/vtkImagePointDataIterator.cxx:403–420  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

401
402//------------------------------------------------------------------------------
403void vtkImagePointDataIterator::ReportProgress()
404{
405 if (this->Count % this->Target == 0)
406 {
407 if (this->Algorithm->GetAbortExecute())
408 {
409 this->Id = this->End;
410 this->SpanEnd = this->End;
411 this->RowEnd = this->End;
412 this->SliceEnd = this->End;
413 }
414 else if (this->ThreadId == 0)
415 {
416 this->Algorithm->UpdateProgress(0.02 * (this->Count / this->Target));
417 }
418 }
419 this->Count++;
420}
421VTK_ABI_NAMESPACE_END

Callers 1

NextSpanMethod · 0.95

Calls 1

UpdateProgressMethod · 0.45

Tested by

no test coverage detected