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

Method WriteInlineModel

IO/XML/vtkXMLStatisticalModelWriter.cxx:241–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241int vtkXMLStatisticalModelWriter::WriteInlineModel(vtkIndent indent)
242{
243 ostream& os = *(this->Stream);
244 vtkIndent nextIndent = indent.GetNextIndent();
245
246 // Open the piece's element.
247 os << nextIndent << "<Piece";
248 this->WriteInlinePieceAttributes();
249 if (this->ErrorCode == vtkErrorCode::OutOfDiskSpaceError)
250 {
251 return 0;
252 }
253 os << ">\n";
254
255 this->WriteInlinePiece(nextIndent.GetNextIndent());
256 if (this->ErrorCode == vtkErrorCode::OutOfDiskSpaceError)
257 {
258 return 0;
259 }
260
261 // Close the piece's element.
262 os << nextIndent << "</Piece>\n";
263
264 return 1;
265}
266
267void vtkXMLStatisticalModelWriter::WriteInlinePieceAttributes()
268{

Callers 1

WriteAPieceMethod · 0.95

Calls 3

WriteInlinePieceMethod · 0.95
GetNextIndentMethod · 0.80

Tested by

no test coverage detected