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

Method WriteData

IO/Core/vtkJavaScriptDataWriter.cxx:95–119  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

93
94//------------------------------------------------------------------------------
95void vtkJavaScriptDataWriter::WriteData()
96{
97 vtkTable* input_table = vtkTable::SafeDownCast(this->GetInput());
98
99 // Check for valid input
100 if (!input_table)
101 {
102 vtkErrorMacro(<< "vtkJavaScriptDataWriter can only write vtkTable.");
103 return;
104 }
105
106 // Check for filename
107 if (this->FileName)
108 {
109 if (this->OpenFile())
110 {
111 this->WriteTable(input_table, this->OutputFile);
112 this->CloseFile();
113 }
114 }
115 else
116 {
117 this->WriteTable(input_table, this->OutputStream);
118 }
119}
120
121//------------------------------------------------------------------------------
122void vtkJavaScriptDataWriter::WriteTable(vtkTable* table, ostream* stream_ptr)

Callers

nothing calls this directly

Calls 4

OpenFileMethod · 0.95
WriteTableMethod · 0.95
CloseFileMethod · 0.95
GetInputMethod · 0.45

Tested by

no test coverage detected