VTK  9.3.20240327
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 
19 VTK_ABI_NAMESPACE_BEGIN
20 class vtkTree;
21 
22 class VTKIOLEGACY_EXPORT vtkTreeWriter : public vtkDataWriter
23 {
24 public:
25  static vtkTreeWriter* New();
26  vtkTypeMacro(vtkTreeWriter, vtkDataWriter);
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
30 
36 
37 protected:
38  vtkTreeWriter() = default;
39  ~vtkTreeWriter() override = default;
40 
41  void WriteData() override;
42 
44 
45 private:
46  vtkTreeWriter(const vtkTreeWriter&) = delete;
47  void operator=(const vtkTreeWriter&) = delete;
48 
49  void WriteEdges(ostream& Stream, vtkTree* Tree);
50 };
51 
52 VTK_ABI_NAMESPACE_END
53 #endif
helper class for objects that write VTK data files
Definition: vtkDataWriter.h:37
a simple class to control print indentation
Definition: vtkIndent.h:108
Store vtkAlgorithm input/output information.
write vtkTree data to a file
Definition: vtkTreeWriter.h:23
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkTree * GetInput(int port)
Get the input to this writer.
vtkTree * GetInput()
Get the input to this writer.
void WriteData() override
static vtkTreeWriter * New()
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:145
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447