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