VTK  9.4.20241222
vtkDataSetWriter.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
34#ifndef vtkDataSetWriter_h
35#define vtkDataSetWriter_h
36
37#include "vtkDataWriter.h"
38#include "vtkIOLegacyModule.h" // For export macro
39
40VTK_ABI_NAMESPACE_BEGIN
41class VTKIOLEGACY_EXPORT vtkDataSetWriter : public vtkDataWriter
42{
43public:
46 void PrintSelf(ostream& os, vtkIndent indent) override;
47
49
53 vtkDataSet* GetInput(int port);
55
56protected:
57 vtkDataSetWriter() = default;
58 ~vtkDataSetWriter() override = default;
59
60 void WriteData() override;
61
62 int FillInputPortInformation(int port, vtkInformation* info) override;
63
64private:
65 vtkDataSetWriter(const vtkDataSetWriter&) = delete;
66 void operator=(const vtkDataSetWriter&) = delete;
67};
68
69VTK_ABI_NAMESPACE_END
70#endif
write any type of vtk dataset to file
vtkDataSetWriter()=default
void WriteData() override
vtkDataSet * GetInput()
Get the input to this writer.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
static vtkDataSetWriter * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataSet * GetInput(int port)
Get the input to this writer.
~vtkDataSetWriter() override=default
abstract class to specify dataset behavior
Definition vtkDataSet.h:165
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.