Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

IO/vtkUnstructuredGridReader.h

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