VTK
dox/Filtering/vtkDataObjectSource.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkDataObjectSource.h
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   vtkTypeMacro(vtkDataObjectSource,vtkSource);
00065   void PrintSelf(ostream& os, vtkIndent indent);
00066 
00068 
00069   vtkDataObject *GetOutput();
00070   vtkDataObject *GetOutput(int idx)
00071     {
00072       return this->vtkSource::GetOutput(idx);
00073     }
00075   
00076   void SetOutput(vtkDataObject *);
00077   
00078 protected:
00079   vtkDataObjectSource();
00080   ~vtkDataObjectSource() {};
00081 
00082   virtual int FillOutputPortInformation(int, vtkInformation*);
00083 private:
00084   vtkDataObjectSource(const vtkDataObjectSource&);  // Not implemented.
00085   void operator=(const vtkDataObjectSource&);  // Not implemented.
00086 };
00087 
00088 #endif
00089