VTK  9.3.0
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
25 #ifndef vtkUnstructuredGridWriter_h
26 #define vtkUnstructuredGridWriter_h
27 
28 #include "vtkDataWriter.h"
29 #include "vtkIOLegacyModule.h" // For export macro
30 VTK_ABI_NAMESPACE_BEGIN
32 
33 class VTKIOLEGACY_EXPORT vtkUnstructuredGridWriter : public vtkDataWriter
34 {
35 public:
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
41 
47 
48 protected:
50  ~vtkUnstructuredGridWriter() override = default;
51 
52  void WriteData() override;
53 
54  int WriteCellsAndFaces(ostream* fp, vtkUnstructuredGridBase* grid, const char* label);
55 
57 
58 private:
60  void operator=(const vtkUnstructuredGridWriter&) = delete;
61 };
62 
63 VTK_ABI_NAMESPACE_END
64 #endif
helper class for objects that write VTK data files
Definition: vtkDataWriter.h:37
a simple class to control print indentation
Definition: vtkIndent.h:38
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
void WriteData() override
~vtkUnstructuredGridWriter() override=default
static vtkUnstructuredGridWriter * New()
vtkUnstructuredGridBase * GetInput(int port)
Get the input to this writer.
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.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447