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

Method ReadPieceData

IO/XML/vtkXMLPStructuredDataReader.cxx:271–291  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

269
270//------------------------------------------------------------------------------
271int vtkXMLPStructuredDataReader::ReadPieceData()
272{
273 // Use the internal reader to read the piece.
274 this->PieceReaders[this->Piece]->UpdateExtent(this->SubExtent);
275
276 // Skip rest of read if aborting.
277 if (this->AbortExecute)
278 {
279 return 0;
280 }
281
282 // Get the actual portion of the piece that was read.
283 this->GetPieceInputExtent(this->Piece, this->SubPieceExtent);
284 this->ComputePointDimensions(this->SubPieceExtent, this->SubPiecePointDimensions);
285 this->ComputePointIncrements(this->SubPieceExtent, this->SubPiecePointIncrements);
286 this->ComputeCellDimensions(this->SubPieceExtent, this->SubPieceCellDimensions);
287 this->ComputeCellIncrements(this->SubPieceExtent, this->SubPieceCellIncrements);
288
289 // Let the superclass read the data it wants.
290 return this->Superclass::ReadPieceData();
291}
292
293//------------------------------------------------------------------------------
294void vtkXMLPStructuredDataReader::CopyArrayForPoints(

Callers

nothing calls this directly

Calls 6

UpdateExtentMethod · 0.80
ComputeCellDimensionsMethod · 0.80
ComputeCellIncrementsMethod · 0.80
GetPieceInputExtentMethod · 0.45

Tested by

no test coverage detected