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

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 =========================================================================*/
00049 #ifndef __vtkUnstructuredGridReader_h
00050 #define __vtkUnstructuredGridReader_h
00051 
00052 #include "vtkDataReader.h"
00053 
00054 class vtkUnstructuredGrid;
00055 
00056 class VTK_IO_EXPORT vtkUnstructuredGridReader : public vtkDataReader
00057 {
00058 public:
00059   static vtkUnstructuredGridReader *New();
00060   vtkTypeRevisionMacro(vtkUnstructuredGridReader,vtkDataReader);
00061   void PrintSelf(ostream& os, vtkIndent indent);
00062 
00064 
00065   vtkUnstructuredGrid *GetOutput();
00066   vtkUnstructuredGrid *GetOutput(int idx)
00067     {return (vtkUnstructuredGrid *) this->vtkSource::GetOutput(idx); };
00068   void SetOutput(vtkUnstructuredGrid *output);
00070   
00071 protected:
00072   vtkUnstructuredGridReader();
00073   ~vtkUnstructuredGridReader();
00074 
00075   void Execute();
00076 
00077   // Since the Outputs[0] has the same UpdateExtent format
00078   // as the generic DataObject we can copy the UpdateExtent
00079   // as a default behavior.
00080   void ComputeInputUpdateExtents(vtkDataObject *output);
00081   
00082   virtual int FillOutputPortInformation(int, vtkInformation*);
00083 private:
00084   vtkUnstructuredGridReader(const vtkUnstructuredGridReader&);  // Not implemented.
00085   void operator=(const vtkUnstructuredGridReader&);  // Not implemented.
00086 };
00087 
00088 #endif
00089 
00090