VTK  9.4.20241225
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
22VTK_ABI_NAMESPACE_BEGIN
23class vtkPolyData;
24
25class VTKIOLEGACY_EXPORT vtkPolyDataWriter : public vtkDataWriter
26{
27public:
30 void PrintSelf(ostream& os, vtkIndent indent) override;
31
33
39
40protected:
41 vtkPolyDataWriter() = default;
42 ~vtkPolyDataWriter() override = default;
43
44 void WriteData() override;
45
46 int FillInputPortInformation(int port, vtkInformation* info) override;
47
48private:
49 vtkPolyDataWriter(const vtkPolyDataWriter&) = delete;
50 void operator=(const vtkPolyDataWriter&) = delete;
51};
52
53VTK_ABI_NAMESPACE_END
54#endif
helper class for objects that write VTK data files
a simple class to control print indentation
Definition vtkIndent.h:108
Store vtkAlgorithm input/output information.
write vtk polygonal data
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkPolyDataWriter()=default
void WriteData() override
vtkPolyData * GetInput()
Get the input to this writer.
vtkPolyData * GetInput(int port)
Get the input to this writer.
static vtkPolyDataWriter * New()
~vtkPolyDataWriter() override=default
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type information and printing.
concrete dataset represents vertices, lines, polygons, and triangle strips