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

Method WriteInlinePieceAttributes

IO/XML/vtkXMLPolyDataWriter.cxx:92–117  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

90
91//------------------------------------------------------------------------------
92void vtkXMLPolyDataWriter::WriteInlinePieceAttributes()
93{
94 this->Superclass::WriteInlinePieceAttributes();
95 if (this->ErrorCode == vtkErrorCode::OutOfDiskSpaceError)
96 {
97 return;
98 }
99
100 vtkPolyData* input = this->GetInput();
101 this->WriteScalarAttribute("NumberOfVerts", input->GetVerts()->GetNumberOfCells());
102 if (this->ErrorCode == vtkErrorCode::OutOfDiskSpaceError)
103 {
104 return;
105 }
106 this->WriteScalarAttribute("NumberOfLines", input->GetLines()->GetNumberOfCells());
107 if (this->ErrorCode == vtkErrorCode::OutOfDiskSpaceError)
108 {
109 return;
110 }
111 this->WriteScalarAttribute("NumberOfStrips", input->GetStrips()->GetNumberOfCells());
112 if (this->ErrorCode == vtkErrorCode::OutOfDiskSpaceError)
113 {
114 return;
115 }
116 this->WriteScalarAttribute("NumberOfPolys", input->GetPolys()->GetNumberOfCells());
117}
118
119//------------------------------------------------------------------------------
120void vtkXMLPolyDataWriter::WriteInlinePiece(vtkIndent indent)

Callers

nothing calls this directly

Calls 7

GetInputMethod · 0.95
WriteScalarAttributeMethod · 0.80
GetVertsMethod · 0.80
GetStripsMethod · 0.80
GetPolysMethod · 0.80
GetNumberOfCellsMethod · 0.45
GetLinesMethod · 0.45

Tested by

no test coverage detected