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 "vtkDataWriter.h"
28 
29 class vtkTree;
30 
32 {
33 public:
34  static vtkTreeWriter *New();
36  void PrintSelf(ostream& os, vtkIndent indent);
37 
39 
40  vtkTree* GetInput();
41  vtkTree* GetInput(int port);
43 
44 protected:
47 
48  void WriteData();
49 
51 
52 private:
53  vtkTreeWriter(const vtkTreeWriter&); // Not implemented.
54  void operator=(const vtkTreeWriter&); // Not implemented.
55 
56  void WriteEdges(ostream& Stream, vtkTree* Tree, vtkIdType Vertex);
57 };
58 
59 #endif
write vtkTree data to a file
Definition: vtkTreeWriter.h:31
Store vtkAlgorithm input/output information.
helper class for objects that write vtk data files
Definition: vtkDataWriter.h:41
void PrintSelf(ostream &os, vtkIndent indent)
int vtkIdType
Definition: vtkType.h:255
a simple class to control print indentation
Definition: vtkIndent.h:37
vtkDataObject * GetInput()
virtual int FillInputPortInformation(int port, vtkInformation *info)
static vtkDataWriter * New()
#define VTK_IO_EXPORT
A rooted tree data structure.
Definition: vtkTree.h:58
void WriteData()