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

dox/Filtering/vtkSimpleImageToImageFilter.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkSimpleImageToImageFilter.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 =========================================================================*/ 00039 #ifndef __vtkSimpleImageToImageFilter_h 00040 #define __vtkSimpleImageToImageFilter_h 00041 00042 #include "vtkImageSource.h" 00043 00044 class VTK_FILTERING_EXPORT vtkSimpleImageToImageFilter : public vtkImageSource 00045 { 00046 public: 00047 vtkTypeRevisionMacro(vtkSimpleImageToImageFilter,vtkImageSource); 00048 void PrintSelf(ostream& os, vtkIndent indent); 00049 00051 00052 virtual void SetInput(vtkImageData *input); 00053 vtkImageData *GetInput(); 00055 00056 00057 protected: 00058 vtkSimpleImageToImageFilter(); 00059 ~vtkSimpleImageToImageFilter(); 00060 00061 // These are called by the superclass. 00062 // You might have to override ExecuteInformation 00063 virtual void ExecuteInformation(); 00064 virtual void ComputeInputUpdateExtent(int inExt[6], int outExt[6]); 00065 00066 // You don't have to touch this unless you have a good reason. 00067 virtual void ExecuteData(vtkDataObject *output); 00068 // In the simplest case, this is the only method you need to define. 00069 virtual void SimpleExecute(vtkImageData* input, vtkImageData* output) = 0; 00070 private: 00071 vtkSimpleImageToImageFilter(const vtkSimpleImageToImageFilter&); // Not implemented. 00072 void operator=(const vtkSimpleImageToImageFilter&); // Not implemented. 00073 }; 00074 00075 #endif 00076 00077 00078 00079 00080 00081 00082