VTK
dox/IO/Legacy/vtkDataSetReader.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkDataSetReader.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00039 #ifndef __vtkDataSetReader_h
00040 #define __vtkDataSetReader_h
00041 
00042 #include "vtkIOLegacyModule.h" // For export macro
00043 #include "vtkDataReader.h"
00044 
00045 class vtkDataSet;
00046 class vtkPolyData;
00047 class vtkRectilinearGrid;
00048 class vtkStructuredGrid;
00049 class vtkStructuredPoints;
00050 class vtkUnstructuredGrid;
00051 
00052 class VTKIOLEGACY_EXPORT vtkDataSetReader : public vtkDataReader
00053 {
00054 public:
00055   static vtkDataSetReader *New();
00056   vtkTypeMacro(vtkDataSetReader,vtkDataReader);
00057   void PrintSelf(ostream& os, vtkIndent indent);
00058 
00060 
00061   vtkDataSet *GetOutput();
00062   vtkDataSet *GetOutput(int idx);
00064 
00066 
00071   vtkPolyData *GetPolyDataOutput();
00072   vtkStructuredPoints *GetStructuredPointsOutput();
00073   vtkStructuredGrid *GetStructuredGridOutput();
00074   vtkUnstructuredGrid *GetUnstructuredGridOutput();
00075   vtkRectilinearGrid *GetRectilinearGridOutput();
00077 
00080   virtual int ReadOutputType();
00081 
00082 protected:
00083   vtkDataSetReader();
00084   ~vtkDataSetReader();
00085 
00086   virtual int ProcessRequest(vtkInformation *, vtkInformationVector **,
00087                              vtkInformationVector *);
00088   virtual int RequestData(vtkInformation *, vtkInformationVector **,
00089                           vtkInformationVector *);
00090   virtual int RequestDataObject(vtkInformation *, vtkInformationVector **,
00091                                 vtkInformationVector *);
00092   virtual int FillOutputPortInformation(int, vtkInformation *);
00093   virtual int RequestInformation(vtkInformation *, vtkInformationVector **,
00094                                  vtkInformationVector *);
00095 
00096 private:
00097   vtkDataSetReader(const vtkDataSetReader&);  // Not implemented.
00098   void operator=(const vtkDataSetReader&);  // Not implemented.
00099 };
00100 
00101 #endif