00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkUnstructuredGridReader.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 =========================================================================*/ 00040 #ifndef __vtkUnstructuredGridReader_h 00041 #define __vtkUnstructuredGridReader_h 00042 00043 #include "vtkDataReader.h" 00044 00045 class vtkUnstructuredGrid; 00046 00047 class VTK_IO_EXPORT vtkUnstructuredGridReader : public vtkDataReader 00048 { 00049 public: 00050 static vtkUnstructuredGridReader *New(); 00051 vtkTypeRevisionMacro(vtkUnstructuredGridReader,vtkDataReader); 00052 void PrintSelf(ostream& os, vtkIndent indent); 00053 00055 00056 vtkUnstructuredGrid *GetOutput(); 00057 vtkUnstructuredGrid *GetOutput(int idx) 00058 {return (vtkUnstructuredGrid *) this->vtkSource::GetOutput(idx); }; 00059 void SetOutput(vtkUnstructuredGrid *output); 00061 00062 protected: 00063 vtkUnstructuredGridReader(); 00064 ~vtkUnstructuredGridReader(); 00065 00066 void Execute(); 00067 00068 // Since the Outputs[0] has the same UpdateExtent format 00069 // as the generic DataObject we can copy the UpdateExtent 00070 // as a default behavior. 00071 void ComputeInputUpdateExtents(vtkDataObject *output); 00072 00073 private: 00074 vtkUnstructuredGridReader(const vtkUnstructuredGridReader&); // Not implemented. 00075 void operator=(const vtkUnstructuredGridReader&); // Not implemented. 00076 }; 00077 00078 #endif 00079 00080