Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | 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 
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 =========================================================================*/
00052 #ifndef __vtkDataSetReader_h
00053 #define __vtkDataSetReader_h
00054 
00055 #include "vtkDataReader.h"
00056 
00057 class vtkDataSet;
00058 class vtkPolyData;
00059 class vtkRectilinearGrid;
00060 class vtkStructuredGrid;
00061 class vtkStructuredPoints;
00062 class vtkUnstructuredGrid;
00063 
00064 class VTK_IO_EXPORT vtkDataSetReader : public vtkDataReader
00065 {
00066 public:
00067   static vtkDataSetReader *New();
00068   vtkTypeRevisionMacro(vtkDataSetReader,vtkDataReader);
00069   void PrintSelf(ostream& os, vtkIndent indent);
00070 
00072 
00075   vtkDataSet *GetOutput();
00076   vtkDataSet *GetOutput(int idx);
00078 
00080 
00085   vtkPolyData *GetPolyDataOutput();
00086   vtkStructuredPoints *GetStructuredPointsOutput();
00087   vtkStructuredGrid *GetStructuredGridOutput();
00088   vtkUnstructuredGrid *GetUnstructuredGridOutput();
00089   vtkRectilinearGrid *GetRectilinearGridOutput();
00091 
00093   void Update();
00094   
00097   virtual int ReadOutputType();
00098 
00099 protected:
00100   vtkDataSetReader();
00101   ~vtkDataSetReader();
00102 
00103   void Execute();
00104   vtkDataReader *Reader;
00105 
00106 private:
00107   vtkDataSetReader(const vtkDataSetReader&);  // Not implemented.
00108   void operator=(const vtkDataSetReader&);  // Not implemented.
00109 };
00110 
00111 #endif
00112 
00113