VTK  9.3.1
vtkTableWriter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
16 #ifndef vtkTableWriter_h
17 #define vtkTableWriter_h
18 
19 #include "vtkDataWriter.h"
20 #include "vtkIOLegacyModule.h" // For export macro
21 VTK_ABI_NAMESPACE_BEGIN
22 class vtkTable;
23 
24 class VTKIOLEGACY_EXPORT vtkTableWriter : public vtkDataWriter
25 {
26 public:
27  static vtkTableWriter* New();
28  vtkTypeMacro(vtkTableWriter, vtkDataWriter);
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
32 
35  vtkTable* GetInput();
36  vtkTable* GetInput(int port);
38 
39 protected:
40  vtkTableWriter() = default;
41  ~vtkTableWriter() override = default;
42 
43  void WriteData() override;
44 
46 
47 private:
48  vtkTableWriter(const vtkTableWriter&) = delete;
49  void operator=(const vtkTableWriter&) = delete;
50 };
51 
52 VTK_ABI_NAMESPACE_END
53 #endif
void WriteData() override
Store vtkAlgorithm input/output information.
helper class for objects that write VTK data files
Definition: vtkDataWriter.h:36
a simple class to control print indentation
Definition: vtkIndent.h:28
vtkDataObject * GetInput()
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:58
write vtkTable to a file
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type information and printing.
static vtkDataWriter * New()
Create object with default header, ASCII format, and default names for scalars, vectors, tensors, normals, and texture coordinates.