00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkRectilinearGridReader.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00050 #ifndef __vtkRectilinearGridReader_h 00051 #define __vtkRectilinearGridReader_h 00052 00053 #include "vtkDataReader.h" 00054 00055 class vtkRectilinearGrid; 00056 00057 class VTK_IO_EXPORT vtkRectilinearGridReader : public vtkDataReader 00058 { 00059 public: 00060 static vtkRectilinearGridReader *New(); 00061 vtkTypeRevisionMacro(vtkRectilinearGridReader,vtkDataReader); 00062 void PrintSelf(ostream& os, vtkIndent indent); 00063 00065 00066 vtkRectilinearGrid *GetOutput(); 00067 vtkRectilinearGrid *GetOutput(int idx) 00068 {return (vtkRectilinearGrid *) this->vtkSource::GetOutput(idx); }; 00069 void SetOutput(vtkRectilinearGrid *output); 00071 00072 protected: 00073 vtkRectilinearGridReader(); 00074 ~vtkRectilinearGridReader(); 00075 00076 void Execute(); 00077 void ExecuteInformation(); 00078 00079 private: 00080 vtkRectilinearGridReader(const vtkRectilinearGridReader&); // Not implemented. 00081 void operator=(const vtkRectilinearGridReader&); // Not implemented. 00082 }; 00083 00084 #endif 00085 00086