------------------------------------------------------------------------------
| 249 | |
| 250 | //------------------------------------------------------------------------------ |
| 251 | int 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 | //------------------------------------------------------------------------------ |
| 271 | int vtkXMLPStructuredDataReader::ReadPieceData() |
nothing calls this directly
no test coverage detected