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

Method WritePrimaryElementAttributes

IO/XML/vtkXMLImageDataWriter.cxx:49–56  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

47
48//------------------------------------------------------------------------------
49void vtkXMLImageDataWriter::WritePrimaryElementAttributes(ostream& os, vtkIndent indent)
50{
51 this->Superclass::WritePrimaryElementAttributes(os, indent);
52 vtkImageData* input = this->GetInput();
53 this->WriteVectorAttribute("Origin", 3, input->GetOrigin());
54 this->WriteVectorAttribute("Spacing", 3, input->GetSpacing());
55 this->WriteVectorAttribute("Direction", 9, input->GetDirectionMatrix()->GetData());
56}
57
58//------------------------------------------------------------------------------
59int vtkXMLImageDataWriter::FillInputPortInformation(int vtkNotUsed(port), vtkInformation* info)

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected