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

Method PieceProgressCallback

IO/XML/vtkXMLPHyperTreeGridReader.cxx:148–158  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

146
147//------------------------------------------------------------------------------
148void vtkXMLPHyperTreeGridReader::PieceProgressCallback()
149{
150 float width = this->ProgressRange[1] - this->ProgressRange[0];
151 float pieceProgress = this->PieceReaders[this->Piece]->GetProgress();
152 float progress = this->ProgressRange[0] + pieceProgress * width;
153 this->UpdateProgressDiscrete(progress);
154 if (this->AbortExecute)
155 {
156 this->PieceReaders[this->Piece]->SetAbortExecute(1);
157 }
158}
159
160//------------------------------------------------------------------------------
161void vtkXMLPHyperTreeGridReader::SetupNextPiece() {}

Callers

nothing calls this directly

Calls 2

GetProgressMethod · 0.45

Tested by

no test coverage detected