VTK  9.5.20250812
vtkTreeWriter.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
13#ifndef vtkTreeWriter_h
14#define vtkTreeWriter_h
15
16#include "vtkDataWriter.h"
17#include "vtkIOLegacyModule.h" // For export macro
18
19VTK_ABI_NAMESPACE_BEGIN
20class vtkTree;
21
22class VTKIOLEGACY_EXPORT vtkTreeWriter : public vtkDataWriter
23{
24public:
25 static vtkTreeWriter* New();
27 void PrintSelf(ostream& os, vtkIndent indent) override;
28
30
34 vtkTree* GetInput(int port);
36
37protected:
38 vtkTreeWriter() = default;
39 ~vtkTreeWriter() override = default;
40
41 void WriteData() override;
42
43 int FillInputPortInformation(int port, vtkInformation* info) override;
44
45private:
46 vtkTreeWriter(const vtkTreeWriter&) = delete;
47 void operator=(const vtkTreeWriter&) = delete;
48
49 void WriteEdges(ostream& Stream, vtkTree* Tree);
50};
51
52VTK_ABI_NAMESPACE_END
53#endif
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 vtkTree data to a file
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void WriteData() override
vtkTree * GetInput()
Get the input to this writer.
static vtkTreeWriter * New()
vtkTree * GetInput(int port)
Get the input to this writer.
vtkTreeWriter()=default
~vtkTreeWriter() override=default
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type information and printing.
A rooted tree data structure.
Definition vtkTree.h:156