------------------------------------------------------------------------------
| 485 | |
| 486 | //------------------------------------------------------------------------------ |
| 487 | void vtkXMLUnstructuredDataWriter::WriteInlinePiece(vtkIndent indent) |
| 488 | { |
| 489 | vtkPointSet* input = this->GetPointSetInput(); |
| 490 | |
| 491 | // Split progress among point data, cell data, and point arrays. |
| 492 | float progressRange[2] = { 0, 0 }; |
| 493 | this->GetProgressRange(progressRange); |
| 494 | float fractions[4]; |
| 495 | this->CalculateDataFractions(fractions); |
| 496 | |
| 497 | // Set the range of progress for the point data arrays. |
| 498 | this->SetProgressRange(progressRange, 0, fractions); |
| 499 | |
| 500 | // Write the point data arrays. |
| 501 | this->WritePointDataInline(input->GetPointData(), indent); |
| 502 | if (this->ErrorCode == vtkErrorCode::OutOfDiskSpaceError) |
| 503 | { |
| 504 | return; |
| 505 | } |
| 506 | |
| 507 | // Set the range of progress for the cell data arrays. |
| 508 | this->SetProgressRange(progressRange, 1, fractions); |
| 509 | |
| 510 | // Write the cell data arrays. |
| 511 | this->WriteCellDataInline(input->GetCellData(), indent); |
| 512 | if (this->ErrorCode == vtkErrorCode::OutOfDiskSpaceError) |
| 513 | { |
| 514 | return; |
| 515 | } |
| 516 | |
| 517 | // Set the range of progress for the point specification array. |
| 518 | this->SetProgressRange(progressRange, 2, fractions); |
| 519 | |
| 520 | // Write the point specification array. |
| 521 | this->WritePointsInline(input->GetPoints(), indent); |
| 522 | } |
| 523 | |
| 524 | //------------------------------------------------------------------------------ |
| 525 | void vtkXMLUnstructuredDataWriter::WriteAppendedPieceAttributes(int index) |
no test coverage detected