Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkImageSource.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageSource.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 =========================================================================*/
00038 #ifndef __vtkImageSource_h
00039 #define __vtkImageSource_h
00040 
00041 #include "vtkSource.h"
00042 
00043 class vtkImageData;
00044 
00045 class VTK_FILTERING_EXPORT vtkImageSource : public vtkSource
00046 {
00047 public:
00048   vtkTypeRevisionMacro(vtkImageSource,vtkSource);
00049   void PrintSelf(ostream& os, vtkIndent indent);
00050 
00052 
00053   void SetOutput(vtkImageData *output);
00054   vtkImageData *GetOutput();
00055   vtkImageData *GetOutput(int idx);
00057   
00058 protected:
00059   vtkImageSource();
00060   ~vtkImageSource() {};
00061 
00062   void Execute();
00063   virtual void Execute(vtkImageData *data);
00064 
00065   // a helper method that sets the extent and allocates the output 
00066   // passed into it and returns it as an image data
00067   virtual vtkImageData *AllocateOutputData(vtkDataObject *out);
00068 
00069   virtual int FillOutputPortInformation(int, vtkInformation*);
00070 private:
00071   vtkImageSource(const vtkImageSource&);  // Not implemented.
00072   void operator=(const vtkImageSource&);  // Not implemented.
00073 };
00074 
00075 
00076 #endif
00077 
00078