VTK  9.3.1
vtkDataSetWriter.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
15 #ifndef vtkDataSetWriter_h
16 #define vtkDataSetWriter_h
17 
18 #include "vtkDataWriter.h"
19 #include "vtkIOLegacyModule.h" // For export macro
20 
21 VTK_ABI_NAMESPACE_BEGIN
22 class VTKIOLEGACY_EXPORT vtkDataSetWriter : public vtkDataWriter
23 {
24 public:
25  static vtkDataSetWriter* New();
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
30 
34  vtkDataSet* GetInput(int port);
36 
37 protected:
38  vtkDataSetWriter() = default;
39  ~vtkDataSetWriter() override = default;
40 
41  void WriteData() override;
42 
44 
45 private:
46  vtkDataSetWriter(const vtkDataSetWriter&) = delete;
47  void operator=(const vtkDataSetWriter&) = delete;
48 };
49 
50 VTK_ABI_NAMESPACE_END
51 #endif
void WriteData() override
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:52
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.
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.
write any type of vtk dataset to file