00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00039 #ifndef __vtkDataSetReader_h
00040 #define __vtkDataSetReader_h
00041
00042 #include "vtkDataReader.h"
00043
00044 class vtkDataSet;
00045 class vtkPolyData;
00046 class vtkRectilinearGrid;
00047 class vtkStructuredGrid;
00048 class vtkStructuredPoints;
00049 class vtkUnstructuredGrid;
00050
00051 class VTK_IO_EXPORT vtkDataSetReader : public vtkDataReader
00052 {
00053 public:
00054 static vtkDataSetReader *New();
00055 vtkTypeMacro(vtkDataSetReader,vtkDataReader);
00056 void PrintSelf(ostream& os, vtkIndent indent);
00057
00059
00060 vtkDataSet *GetOutput();
00061 vtkDataSet *GetOutput(int idx);
00063
00065
00070 vtkPolyData *GetPolyDataOutput();
00071 vtkStructuredPoints *GetStructuredPointsOutput();
00072 vtkStructuredGrid *GetStructuredGridOutput();
00073 vtkUnstructuredGrid *GetUnstructuredGridOutput();
00074 vtkRectilinearGrid *GetRectilinearGridOutput();
00076
00079 virtual int ReadOutputType();
00080
00081 protected:
00082 vtkDataSetReader();
00083 ~vtkDataSetReader();
00084
00085 virtual int ProcessRequest(vtkInformation *, vtkInformationVector **,
00086 vtkInformationVector *);
00087 virtual int RequestData(vtkInformation *, vtkInformationVector **,
00088 vtkInformationVector *);
00089 virtual int RequestDataObject(vtkInformation *, vtkInformationVector **,
00090 vtkInformationVector *);
00091 virtual int FillOutputPortInformation(int, vtkInformation *);
00092 virtual int RequestInformation(vtkInformation *, vtkInformationVector **,
00093 vtkInformationVector *);
00094
00095 private:
00096 vtkDataSetReader(const vtkDataSetReader&);
00097 void operator=(const vtkDataSetReader&);
00098 };
00099
00100 #endif
00101
00102