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

Method WriteAPiece

IO/XML/vtkXMLUnstructuredDataWriter.cxx:403–424  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

401
402//------------------------------------------------------------------------------
403int vtkXMLUnstructuredDataWriter::WriteAPiece()
404{
405 vtkIndent indent = vtkIndent().GetNextIndent();
406
407 int result = 1;
408
409 if (this->DataMode == vtkXMLWriter::Appended)
410 {
411 this->WriteAppendedPieceData(this->CurrentPiece);
412 }
413 else
414 {
415 result = this->WriteInlineMode(indent);
416 }
417
418 if (this->ErrorCode == vtkErrorCode::OutOfDiskSpaceError)
419 {
420 this->DeletePositionArrays();
421 result = 0;
422 }
423 return result;
424}
425
426//------------------------------------------------------------------------------
427int vtkXMLUnstructuredDataWriter::WriteFooter()

Callers 1

ProcessRequestMethod · 0.95

Calls 5

WriteInlineModeMethod · 0.95
DeletePositionArraysMethod · 0.95
GetNextIndentMethod · 0.80
vtkIndentClass · 0.50

Tested by

no test coverage detected