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

Method WritePrimaryElementAttributes

IO/ParallelXML/vtkXMLPImageDataWriter.cxx:45–61  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

43
44//------------------------------------------------------------------------------
45void vtkXMLPImageDataWriter::WritePrimaryElementAttributes(ostream& os, vtkIndent indent)
46{
47 this->Superclass::WritePrimaryElementAttributes(os, indent);
48 if (this->ErrorCode == vtkErrorCode::OutOfDiskSpaceError)
49 {
50 return;
51 }
52
53 vtkImageData* input = this->GetInput();
54 this->WriteVectorAttribute("Origin", 3, input->GetOrigin());
55 if (this->ErrorCode == vtkErrorCode::OutOfDiskSpaceError)
56 {
57 return;
58 }
59
60 this->WriteVectorAttribute("Spacing", 3, input->GetSpacing());
61}
62
63//------------------------------------------------------------------------------
64vtkXMLStructuredDataWriter* vtkXMLPImageDataWriter::CreateStructuredPieceWriter()

Callers

nothing calls this directly

Calls 4

GetInputMethod · 0.95
WriteVectorAttributeMethod · 0.80
GetOriginMethod · 0.45
GetSpacingMethod · 0.45

Tested by

no test coverage detected