VTK  9.7.1
vtkLegacyCellGridWriter.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 vtkLegacyCellGridWriter_h
17 #define vtkLegacyCellGridWriter_h
18 
19 #include "vtkCellGridWriter.h" // For ivar
20 #include "vtkDataWriter.h"
21 #include "vtkIOLegacyModule.h" // For export macro
22 #include "vtkNew.h" // For ivar
23 
24 VTK_ABI_NAMESPACE_BEGIN
25 
26 class VTKIOLEGACY_EXPORT vtkLegacyCellGridWriter : public vtkDataWriter
27 {
28 public:
29  static vtkLegacyCellGridWriter* New();
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32 
34 
40 
41 protected:
42  vtkLegacyCellGridWriter() = default;
43  ~vtkLegacyCellGridWriter() override = default;
44 
45  bool WriteDataAndReturn() override;
46 
47 #if 0
48  int WriteArrayGroups(ostream* fp, vtkCellGrid* grid);
49  int WriteCellAttributes(ostream* fp, vtkCellGrid* grid);
50  int WriteCellMetadata(ostream* fp, vtkCellGrid* grid);
51 #endif
52 
54 
56 
57 private:
59  void operator=(const vtkLegacyCellGridWriter&) = delete;
60 };
61 
62 VTK_ABI_NAMESPACE_END
63 #endif
Store vtkAlgorithm input/output information.
helper class for objects that write VTK data files
Definition: vtkDataWriter.h:36
Write VTK cell-grid data to a file.
vtkNew< vtkCellGridWriter > Subwriter
Visualization data composed of cells of arbitrary type.
Definition: vtkCellGrid.h:48
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.
bool WriteDataAndReturn() override
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.