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