VTK
vtkGenericDataObjectReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGenericDataObjectReader.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 =========================================================================*/
37 #ifndef __vtkGenericDataObjectReader_h
38 #define __vtkGenericDataObjectReader_h
39 
40 #include "vtkDataReader.h"
41 
42 class vtkDataObject;
43 class vtkGraph;
44 class vtkPolyData;
45 class vtkRectilinearGrid;
46 class vtkStructuredGrid;
48 class vtkTable;
49 class vtkTree;
51 
53 {
54 public:
57  void PrintSelf(ostream& os, vtkIndent indent);
58 
60 
61  vtkDataObject *GetOutput();
62  vtkDataObject *GetOutput(int idx);
64 
66 
71  vtkGraph *GetGraphOutput();
72  vtkPolyData *GetPolyDataOutput();
73  vtkRectilinearGrid *GetRectilinearGridOutput();
74  vtkStructuredGrid *GetStructuredGridOutput();
75  vtkStructuredPoints *GetStructuredPointsOutput();
76  vtkTable *GetTableOutput();
77  vtkTree *GetTreeOutput();
78  vtkUnstructuredGrid *GetUnstructuredGridOutput();
80 
83  virtual int ReadOutputType();
84 
86 
89 //BTX
90 protected:
94 
97  virtual int RequestDataObject(vtkInformation *, vtkInformationVector **,
99  virtual int FillOutputPortInformation(int, vtkInformation *);
102 
103 private:
104  vtkGenericDataObjectReader(const vtkGenericDataObjectReader&); // Not implemented.
105  void operator=(const vtkGenericDataObjectReader&); // Not implemented.
106 
107  template<typename ReaderT, typename DataT>
108  void ReadData(const char* dataClass, vtkDataObject* output);
109 
110  vtkSetStringMacro(Header);
111 //ETX
112 };
113 
114 #endif