VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkDataSetReader.h,v $ 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 =========================================================================*/ 00036 #ifndef __vtkDataSetReader_h 00037 #define __vtkDataSetReader_h 00038 00039 #include "vtkDataReader.h" 00040 00041 class vtkDataSet; 00042 class vtkPolyData; 00043 class vtkRectilinearGrid; 00044 class vtkStructuredGrid; 00045 class vtkStructuredPoints; 00046 class vtkUnstructuredGrid; 00047 00048 class VTK_IO_EXPORT vtkDataSetReader : public vtkDataReader 00049 { 00050 public: 00051 static vtkDataSetReader *New(); 00052 vtkTypeRevisionMacro(vtkDataSetReader,vtkDataReader); 00053 void PrintSelf(ostream& os, vtkIndent indent); 00054 00056 00057 vtkDataSet *GetOutput(); 00058 vtkDataSet *GetOutput(int idx); 00060 00062 00067 vtkPolyData *GetPolyDataOutput(); 00068 vtkStructuredPoints *GetStructuredPointsOutput(); 00069 vtkStructuredGrid *GetStructuredGridOutput(); 00070 vtkUnstructuredGrid *GetUnstructuredGridOutput(); 00071 vtkRectilinearGrid *GetRectilinearGridOutput(); 00073 00076 virtual int ReadOutputType(); 00077 00078 protected: 00079 vtkDataSetReader(); 00080 ~vtkDataSetReader(); 00081 00082 virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, 00083 vtkInformationVector *); 00084 virtual int RequestData(vtkInformation *, vtkInformationVector **, 00085 vtkInformationVector *); 00086 virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, 00087 vtkInformationVector *); 00088 virtual int FillOutputPortInformation(int, vtkInformation *); 00089 virtual int RequestInformation(vtkInformation *, vtkInformationVector **, 00090 vtkInformationVector *); 00091 00092 private: 00093 vtkDataSetReader(const vtkDataSetReader&); // Not implemented. 00094 void operator=(const vtkDataSetReader&); // Not implemented. 00095 }; 00096 00097 #endif 00098 00099