VTK: IO/Legacy/vtkDataSetWriter.h Source File

| VTK 9.3.1

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
24 #ifndef vtkDataSetWriter_h
25 #define vtkDataSetWriter_h
26
27 #include "vtkDataWriter.h"
28 #include "vtkIOLegacyModule.h" // For export macro
29
30 VTK_ABI_NAMESPACE_BEGIN
31 class VTKIOLEGACY_EXPORT vtkDataSetWriter : public vtkDataWriter
32 {
33 public:
34 static vtkDataSetWriter* New();
35 vtkTypeMacro(vtkDataSetWriter, vtkDataWriter);
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
39
42 vtkDataSet* GetInput();
43 vtkDataSet* GetInput(int port);
45
46 protected:
47 vtkDataSetWriter() = default;
48 ~vtkDataSetWriter() override = default;
49
50 void WriteData() override;
51
52 int FillInputPortInformation(int port, vtkInformation* info) override;
53
54 private:
55 vtkDataSetWriter(const vtkDataSetWriter&) = delete;
56 void operator=(const vtkDataSetWriter&) = delete;
57 };
58
59 VTK_ABI_NAMESPACE_END
60 #endif
vtkDataSetWriter
write any type of vtk dataset to file
Definition: vtkDataSetWriter.h:32
vtkDataSetWriter::GetInput
vtkDataSet * GetInput(int port)
Get the input to this writer.
vtkDataSetWriter::GetInput
vtkDataSet * GetInput()
Get the input to this writer.
vtkDataSetWriter::vtkDataSetWriter
vtkDataSetWriter()=default
vtkDataSetWriter::WriteData
void WriteData() override
vtkDataSetWriter::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkDataSetWriter::New
static vtkDataSetWriter * New()
vtkDataSetWriter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataSetWriter::~vtkDataSetWriter
~vtkDataSetWriter() override=default
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkDataWriter
helper class for objects that write VTK data files
Definition: vtkDataWriter.h:37
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkDataWriter.h