00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkDataObjectSource.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 =========================================================================*/ 00058 #ifndef __vtkDataObjectSource_h 00059 #define __vtkDataObjectSource_h 00060 00061 #include "vtkSource.h" 00062 00063 class vtkDataObject; 00064 00065 class VTK_FILTERING_EXPORT vtkDataObjectSource : public vtkSource 00066 { 00067 public: 00068 vtkTypeRevisionMacro(vtkDataObjectSource,vtkSource); 00069 void PrintSelf(ostream& os, vtkIndent indent); 00070 00072 00073 vtkDataObject *GetOutput(); 00074 vtkDataObject *GetOutput(int idx) 00075 {return (vtkDataObject *) this->vtkSource::GetOutput(idx); }; 00076 void SetOutput(vtkDataObject *); 00078 00079 protected: 00080 vtkDataObjectSource(); 00081 ~vtkDataObjectSource() {}; 00082 00083 private: 00084 vtkDataObjectSource(const vtkDataObjectSource&); // Not implemented. 00085 void operator=(const vtkDataObjectSource&); // Not implemented. 00086 }; 00087 00088 #endif 00089