| 239 | } |
| 240 | |
| 241 | int 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 | |
| 267 | void vtkXMLStatisticalModelWriter::WriteInlinePieceAttributes() |
| 268 | { |
no test coverage detected