VTK  9.4.20250407
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
24VTK_ABI_NAMESPACE_BEGIN
25
26class VTKIOLEGACY_EXPORT vtkLegacyCellGridWriter : public vtkDataWriter
27{
28public:
31 void PrintSelf(ostream& os, vtkIndent indent) override;
32
34
40
41protected:
43 ~vtkLegacyCellGridWriter() override = default;
44
45 void WriteData() 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
53 int FillInputPortInformation(int port, vtkInformation* info) override;
54
56
57private:
59 void operator=(const vtkLegacyCellGridWriter&) = delete;
60};
61
62VTK_ABI_NAMESPACE_END
63#endif
Visualization data composed of cells of arbitrary type.
Definition vtkCellGrid.h:49
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 cell-grid data to a file.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
~vtkLegacyCellGridWriter() override=default
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type information and printing.
void WriteData() override
vtkCellGrid * GetInput(int port)
Get the input to this writer.
vtkNew< vtkCellGridWriter > Subwriter
vtkLegacyCellGridWriter()=default
vtkCellGrid * GetInput()
Get the input to this writer.
static vtkLegacyCellGridWriter * New()
Allocate and hold a VTK object.
Definition vtkNew.h:167