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

Method DataProgressCallback

IO/XML/vtkXMLDataReader.cxx:543–556  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

541
542//------------------------------------------------------------------------------
543void vtkXMLDataReader::DataProgressCallback()
544{
545 if (this->InReadData)
546 {
547 float width = this->ProgressRange[1] - this->ProgressRange[0];
548 float dataProgress = this->XMLParser->GetProgress();
549 float progress = this->ProgressRange[0] + dataProgress * width;
550 this->UpdateProgressDiscrete(progress);
551 if (this->AbortExecute)
552 {
553 this->XMLParser->SetAbort(1);
554 }
555 }
556}
557
558//------------------------------------------------------------------------------
559int vtkXMLDataReader::PointDataNeedToReadTimeStep(vtkXMLDataElement* eNested)

Callers 1

Calls 2

GetProgressMethod · 0.45

Tested by

no test coverage detected