VTK  9.0.3
vtkNewickTreeWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkNewickTreeWriter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
23 #ifndef vtkNewickTreeWriter_h
24 #define vtkNewickTreeWriter_h
25 
26 #include "vtkDataWriter.h"
27 #include "vtkIOInfovisModule.h" // For export macro
28 #include "vtkStdString.h" // For get/set ivars
29 
30 class vtkTree;
31 
32 class VTKIOINFOVIS_EXPORT vtkNewickTreeWriter : public vtkDataWriter
33 {
34 public:
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
40 
46 
48 
55  vtkGetMacro(EdgeWeightArrayName, vtkStdString);
56  vtkSetMacro(EdgeWeightArrayName, vtkStdString);
58 
60 
67  vtkGetMacro(NodeNameArrayName, vtkStdString);
68  vtkSetMacro(NodeNameArrayName, vtkStdString);
70 
71 protected:
73  ~vtkNewickTreeWriter() override {}
74 
75  void WriteData() override;
76 
81  void WriteVertex(ostream* fp, vtkTree* const input, vtkIdType vertex);
82 
84 
87 
90 
91 private:
93  void operator=(const vtkNewickTreeWriter&) = delete;
94 };
95 
96 #endif
Abstract superclass for all arrays.
helper class for objects that write vtk data files
Definition: vtkDataWriter.h:48
a simple class to control print indentation
Definition: vtkIndent.h:34
Store vtkAlgorithm input/output information.
write vtkTree data to Newick format.
static vtkNewickTreeWriter * New()
vtkAbstractArray * NodeNameArray
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTree * GetInput()
Get the input to this writer.
void WriteData() override
vtkStdString EdgeWeightArrayName
vtkStdString NodeNameArrayName
vtkTree * GetInput(int port)
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void WriteVertex(ostream *fp, vtkTree *const input, vtkIdType vertex)
Write one vertex.
vtkAbstractArray * EdgeWeightArray
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:35
A rooted tree data structure.
Definition: vtkTree.h:55
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
int vtkIdType
Definition: vtkType.h:338