VTK
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 =========================================================================*/
25 #ifndef vtkNewickTreeWriter_h
26 #define vtkNewickTreeWriter_h
27 
28 #include "vtkIOInfovisModule.h" // For export macro
29 #include "vtkDataWriter.h"
30 #include "vtkStdString.h" // For get/set ivars
31 
32 class vtkTree;
33 
35 {
36 public:
37  static vtkNewickTreeWriter *New();
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
42 
43  vtkTree* GetInput();
44  vtkTree* GetInput(int port);
46 
48 
52  vtkGetMacro(EdgeWeightArrayName, vtkStdString);
53  vtkSetMacro(EdgeWeightArrayName, vtkStdString);
55 
57 
61  vtkGetMacro(NodeNameArrayName, vtkStdString);
62  vtkSetMacro(NodeNameArrayName, vtkStdString);
64 
65 protected:
68 
69  void WriteData();
70 
73  void WriteVertex(ostream *fp, vtkTree* const input, vtkIdType vertex);
74 
76 
79 
82 
83 private:
84  vtkNewickTreeWriter(const vtkNewickTreeWriter&); // Not implemented.
85  void operator=(const vtkNewickTreeWriter&); // Not implemented.
86 };
87 
88 #endif
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:46
write vtkTree data to Newick format.
vtkStdString NodeNameArrayName
Store vtkAlgorithm input/output information.
Abstract superclass for all arrays.
helper class for objects that write vtk data files
Definition: vtkDataWriter.h:42
#define VTKIOINFOVIS_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)
int vtkIdType
Definition: vtkType.h:275
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkDataObject * GetInput()
vtkAbstractArray * EdgeWeightArray
virtual int FillInputPortInformation(int port, vtkInformation *info)
static vtkDataWriter * New()
vtkStdString EdgeWeightArrayName
vtkAbstractArray * NodeNameArray
A rooted tree data structure.
Definition: vtkTree.h:59
void WriteData()