Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Filtering/vtkSimpleImageToImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkSimpleImageToImageFilter.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 =========================================================================*/
00056 #ifndef __vtkSimpleImageToImageFilter_h
00057 #define __vtkSimpleImageToImageFilter_h
00058 
00059 #include "vtkImageSource.h"
00060 
00061 class VTK_FILTERING_EXPORT vtkSimpleImageToImageFilter : public vtkImageSource
00062 {
00063 public:
00064   vtkTypeRevisionMacro(vtkSimpleImageToImageFilter,vtkImageSource);
00065   void PrintSelf(ostream& os, vtkIndent indent);
00066 
00068 
00069   virtual void SetInput(vtkImageData *input);
00070   vtkImageData *GetInput();
00072   
00073   
00074 protected:
00075   vtkSimpleImageToImageFilter();
00076   ~vtkSimpleImageToImageFilter();
00077 
00078   // These are called by the superclass.
00079   // You might have to override ExecuteInformation
00080   virtual void ExecuteInformation();
00081   virtual void ComputeInputUpdateExtent(int inExt[6], int outExt[6]);
00082 
00083   // You don't have to touch this unless you have a good reason.
00084   virtual void ExecuteData(vtkDataObject *output);
00085   // In the simplest case, this is the only method you need to define.
00086   virtual void SimpleExecute(vtkImageData* input, vtkImageData* output) = 0;
00087 private:
00088   vtkSimpleImageToImageFilter(const vtkSimpleImageToImageFilter&);  // Not implemented.
00089   void operator=(const vtkSimpleImageToImageFilter&);  // Not implemented.
00090 };
00091 
00092 #endif
00093 
00094 
00095 
00096 
00097 
00098 
00099