VTK
vtkTreeReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTreeReader.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 =========================================================================*/
30 #ifndef __vtkTreeReader_h
31 #define __vtkTreeReader_h
32 
33 #include "vtkIOGeometryModule.h" // For export macro
34 #include "vtkDataReader.h"
35 
36 class vtkTree;
37 
38 class VTKIOGEOMETRY_EXPORT vtkTreeReader : public vtkDataReader
39 {
40 public:
41  static vtkTreeReader *New();
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
47  vtkTree *GetOutput();
48  vtkTree *GetOutput(int idx);
49  void SetOutput(vtkTree *output);
51 
52 protected:
53  vtkTreeReader();
54  ~vtkTreeReader();
55 
58 
59  // Since the Outputs[0] has the same UpdateExtent format
60  // as the generic DataObject we can copy the UpdateExtent
61  // as a default behavior.
64 
65  virtual int FillOutputPortInformation(int, vtkInformation*);
66 private:
67  vtkTreeReader(const vtkTreeReader&); // Not implemented.
68  void operator=(const vtkTreeReader&); // Not implemented.
69 };
70 
71 #endif
72 
73