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

Method ReadPiece

IO/XML/vtkXMLPStructuredDataReader.cxx:251–268  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

249
250//------------------------------------------------------------------------------
251int vtkXMLPStructuredDataReader::ReadPiece(vtkXMLDataElement* ePiece)
252{
253 // Superclass will create a reader for the piece's file.
254 if (!this->Superclass::ReadPiece(ePiece))
255 {
256 return 0;
257 }
258
259 // Get the extent of the piece.
260 int* pieceExtent = this->PieceExtents + this->Piece * 6;
261 if (ePiece->GetVectorAttribute("Extent", 6, pieceExtent) < 6)
262 {
263 vtkErrorMacro("Piece " << this->Piece << " has invalid Extent.");
264 return 0;
265 }
266
267 return 1;
268}
269
270//------------------------------------------------------------------------------
271int vtkXMLPStructuredDataReader::ReadPieceData()

Callers

nothing calls this directly

Calls 1

GetVectorAttributeMethod · 0.80

Tested by

no test coverage detected