VTK  9.3.1
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
16 #ifndef vtkUnstructuredGridWriter_h
17 #define vtkUnstructuredGridWriter_h
18 
19 #include "vtkDataWriter.h"
20 #include "vtkIOLegacyModule.h" // For export macro
21 VTK_ABI_NAMESPACE_BEGIN
23 
24 class VTKIOLEGACY_EXPORT vtkUnstructuredGridWriter : public vtkDataWriter
25 {
26 public:
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
32 
38 
39 protected:
40  vtkUnstructuredGridWriter() = default;
41  ~vtkUnstructuredGridWriter() override = default;
42 
43  void WriteData() override;
44 
45  int WriteCellsAndFaces(ostream* fp, vtkUnstructuredGridBase* grid, const char* label);
46 
48 
49 private:
51  void operator=(const vtkUnstructuredGridWriter&) = delete;
52 };
53 
54 VTK_ABI_NAMESPACE_END
55 #endif
void WriteData() override
Store vtkAlgorithm input/output information.
helper class for objects that write VTK data files
Definition: vtkDataWriter.h:36
write vtk unstructured grid data file
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.
dataset represents arbitrary combinations of all possible cell types.