VTK
vtkDataSetReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDataSetReader.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 =========================================================================*/
39 #ifndef __vtkDataSetReader_h
40 #define __vtkDataSetReader_h
41 
42 #include "vtkDataReader.h"
43 
44 class vtkDataSet;
45 class vtkPolyData;
46 class vtkRectilinearGrid;
47 class vtkStructuredGrid;
50 
52 {
53 public:
54  static vtkDataSetReader *New();
56  void PrintSelf(ostream& os, vtkIndent indent);
57 
59 
60  vtkDataSet *GetOutput();
61  vtkDataSet *GetOutput(int idx);
63 
65 
70  vtkPolyData *GetPolyDataOutput();
71  vtkStructuredPoints *GetStructuredPointsOutput();
72  vtkStructuredGrid *GetStructuredGridOutput();
73  vtkUnstructuredGrid *GetUnstructuredGridOutput();
74  vtkRectilinearGrid *GetRectilinearGridOutput();
76 
79  virtual int ReadOutputType();
80 
81 protected:
84 
89  virtual int RequestDataObject(vtkInformation *, vtkInformationVector **,
91  virtual int FillOutputPortInformation(int, vtkInformation *);
94 
95 private:
96  vtkDataSetReader(const vtkDataSetReader&); // Not implemented.
97  void operator=(const vtkDataSetReader&); // Not implemented.
98 };
99 
100 #endif
101 
102