VTK  9.3.1
vtkPolyDataWriter.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 vtkPolyDataWriter_h
17 #define vtkPolyDataWriter_h
18 
19 #include "vtkDataWriter.h"
20 #include "vtkIOLegacyModule.h" // For export macro
21 
22 VTK_ABI_NAMESPACE_BEGIN
23 class vtkPolyData;
24 
25 class VTKIOLEGACY_EXPORT vtkPolyDataWriter : public vtkDataWriter
26 {
27 public:
28  static vtkPolyDataWriter* New();
30  void PrintSelf(ostream& os, vtkIndent indent) override;
31 
33 
39 
40 protected:
41  vtkPolyDataWriter() = default;
42  ~vtkPolyDataWriter() override = default;
43 
44  void WriteData() override;
45 
47 
48 private:
49  vtkPolyDataWriter(const vtkPolyDataWriter&) = delete;
50  void operator=(const vtkPolyDataWriter&) = delete;
51 };
52 
53 VTK_ABI_NAMESPACE_END
54 #endif
write vtk polygonal data
void WriteData() override
Store vtkAlgorithm input/output information.
helper class for objects that write VTK data files
Definition: vtkDataWriter.h:36
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
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.