VTK
vtkTreeWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTreeWriter.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 =========================================================================*/
24 #ifndef __vtkTreeWriter_h
25 #define __vtkTreeWriter_h
26 
27 #include "vtkIOGeometryModule.h" // For export macro
28 #include "vtkDataWriter.h"
29 
30 class vtkTree;
31 
32 class VTKIOGEOMETRY_EXPORT vtkTreeWriter : public vtkDataWriter
33 {
34 public:
35  static vtkTreeWriter *New();
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
40 
41  vtkTree* GetInput();
42  vtkTree* GetInput(int port);
44 
45 protected:
48 
49  void WriteData();
50 
52 
53 private:
54  vtkTreeWriter(const vtkTreeWriter&); // Not implemented.
55  void operator=(const vtkTreeWriter&); // Not implemented.
56 
57  void WriteEdges(ostream& Stream, vtkTree* Tree, vtkIdType Vertex);
58 };
59 
60 #endif