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

Method WriteData

IO/Legacy/vtkTableWriter.cxx:20–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18vtkStandardNewMacro(vtkTableWriter);
19
20void vtkTableWriter::WriteData()
21{
22 ostream* fp = nullptr;
23 vtkDebugMacro(<< "Writing vtk table data...");
24
25 if (!(fp = this->OpenVTKFile()) || !this->WriteHeader(fp))
26 {
27 if (fp)
28 {
29 vtkErrorMacro("Ran out of disk space; deleting file: " << this->FileName);
30 this->CloseVTKFile(fp);
31 unlink(this->FileName);
32 }
33 return;
34 }
35 //
36 // Write table specific stuff
37 //
38 *fp << "DATASET TABLE\n";
39
40 this->WriteFieldData(fp, this->GetInput()->GetFieldData());
41 this->WriteRowData(fp, this->GetInput());
42
43 this->CloseVTKFile(fp);
44}
45
46int vtkTableWriter::FillInputPortInformation(int, vtkInformation* info)
47{

Callers

nothing calls this directly

Calls 7

GetInputMethod · 0.95
WriteRowDataMethod · 0.80
OpenVTKFileMethod · 0.45
WriteHeaderMethod · 0.45
CloseVTKFileMethod · 0.45
WriteFieldDataMethod · 0.45
GetFieldDataMethod · 0.45

Tested by

no test coverage detected