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 "vtkIOLegacyModule.h" // For export macro
28 #include "vtkDataWriter.h"
29 
30 class vtkTree;
31 
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);
58 };
59 
60 #endif
write vtkTree data to a file
Definition: vtkTreeWriter.h:32
Store vtkAlgorithm input/output information.
helper class for objects that write vtk data files
Definition: vtkDataWriter.h:42
void PrintSelf(ostream &os, vtkIndent indent)
#define VTKIOLEGACY_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkDataObject * GetInput()
virtual int FillInputPortInformation(int port, vtkInformation *info)
static vtkDataWriter * New()
A rooted tree data structure.
Definition: vtkTree.h:59
void WriteData()