00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkDataObjectReader.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 =========================================================================*/ 00037 #ifndef __vtkDataObjectReader_h 00038 #define __vtkDataObjectReader_h 00039 00040 #include "vtkDataReader.h" 00041 00042 class vtkDataObject; 00043 00044 class VTK_IO_EXPORT vtkDataObjectReader : public vtkDataReader 00045 { 00046 public: 00047 static vtkDataObjectReader *New(); 00048 vtkTypeRevisionMacro(vtkDataObjectReader,vtkDataReader); 00049 void PrintSelf(ostream& os, vtkIndent indent); 00050 00052 00053 vtkDataObject *GetOutput(); 00054 vtkDataObject *GetOutput(int idx) 00055 {return this->vtkSource::GetOutput(idx); }; 00056 void SetOutput(vtkDataObject *); 00058 00059 protected: 00060 vtkDataObjectReader(); 00061 ~vtkDataObjectReader(); 00062 00063 void Execute(); 00064 private: 00065 vtkDataObjectReader(const vtkDataObjectReader&); // Not implemented. 00066 void operator=(const vtkDataObjectReader&); // Not implemented. 00067 }; 00068 00069 #endif 00070 00071