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 =========================================================================*/ 00037 #ifndef __vtkRectilinearGridReader_h 00038 #define __vtkRectilinearGridReader_h 00039 00040 #include "vtkDataReader.h" 00041 00042 class vtkRectilinearGrid; 00043 00044 class VTK_IO_EXPORT vtkRectilinearGridReader : public vtkDataReader 00045 { 00046 public: 00047 static vtkRectilinearGridReader *New(); 00048 vtkTypeRevisionMacro(vtkRectilinearGridReader,vtkDataReader); 00049 void PrintSelf(ostream& os, vtkIndent indent); 00050 00052 00053 vtkRectilinearGrid *GetOutput(); 00054 vtkRectilinearGrid *GetOutput(int idx) 00055 {return (vtkRectilinearGrid *) this->vtkSource::GetOutput(idx); }; 00056 void SetOutput(vtkRectilinearGrid *output); 00058 00059 protected: 00060 vtkRectilinearGridReader(); 00061 ~vtkRectilinearGridReader(); 00062 00063 void Execute(); 00064 void ExecuteInformation(); 00065 00066 private: 00067 vtkRectilinearGridReader(const vtkRectilinearGridReader&); // Not implemented. 00068 void operator=(const vtkRectilinearGridReader&); // Not implemented. 00069 }; 00070 00071 #endif 00072 00073