VTK  9.4.20241221
vtkUnstructuredGridWriter.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
35#ifndef vtkUnstructuredGridWriter_h
36#define vtkUnstructuredGridWriter_h
37
38#include "vtkDataWriter.h"
39#include "vtkIOLegacyModule.h" // For export macro
40VTK_ABI_NAMESPACE_BEGIN
42
43class VTKIOLEGACY_EXPORT vtkUnstructuredGridWriter : public vtkDataWriter
44{
45public:
48 void PrintSelf(ostream& os, vtkIndent indent) override;
49
51
57
58protected:
60 ~vtkUnstructuredGridWriter() override = default;
61
62 void WriteData() override;
63
64 int WriteCellsAndFaces(ostream* fp, vtkUnstructuredGridBase* grid, const char* label);
65
66 int FillInputPortInformation(int port, vtkInformation* info) override;
67
68private:
70 void operator=(const vtkUnstructuredGridWriter&) = delete;
71};
72
73VTK_ABI_NAMESPACE_END
74#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.
dataset represents arbitrary combinations of all possible cell types.
write vtk unstructured grid data file
int WriteCellsAndFaces(ostream *fp, vtkUnstructuredGridBase *grid, const char *label)
vtkUnstructuredGridBase * GetInput()
Get the input to this writer.
vtkUnstructuredGridWriter()=default
vtkUnstructuredGridBase * GetInput(int port)
Get the input to this writer.
void WriteData() override
~vtkUnstructuredGridWriter() override=default
static vtkUnstructuredGridWriter * New()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type information and printing.