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

vtkDataSetReader.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkDataSetReader.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 =========================================================================*/
00043 #ifndef __vtkDataSetReader_h
00044 #define __vtkDataSetReader_h
00045 
00046 #include "vtkDataReader.h"
00047 
00048 class vtkDataSet;
00049 class vtkPolyData;
00050 class vtkRectilinearGrid;
00051 class vtkStructuredGrid;
00052 class vtkStructuredPoints;
00053 class vtkUnstructuredGrid;
00054 
00055 class VTK_IO_EXPORT vtkDataSetReader : public vtkDataReader
00056 {
00057 public:
00058   static vtkDataSetReader *New();
00059   vtkTypeRevisionMacro(vtkDataSetReader,vtkDataReader);
00060   void PrintSelf(ostream& os, vtkIndent indent);
00061 
00063 
00066   vtkDataSet *GetOutput();
00067   vtkDataSet *GetOutput(int idx);
00069 
00071 
00076   vtkPolyData *GetPolyDataOutput();
00077   vtkStructuredPoints *GetStructuredPointsOutput();
00078   vtkStructuredGrid *GetStructuredGridOutput();
00079   vtkUnstructuredGrid *GetUnstructuredGridOutput();
00080   vtkRectilinearGrid *GetRectilinearGridOutput();
00082 
00084   void Update();
00085   
00088   virtual int ReadOutputType();
00089 
00090 protected:
00091   vtkDataSetReader();
00092   ~vtkDataSetReader();
00093 
00094   void Execute();
00095   vtkDataReader *Reader;
00096 
00097 private:
00098   vtkDataSetReader(const vtkDataSetReader&);  // Not implemented.
00099   void operator=(const vtkDataSetReader&);  // Not implemented.
00100 };
00101 
00102 #endif
00103 
00104