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