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

dox/Imaging/vtkImageSpatialFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageSpatialFilter.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 =========================================================================*/
00030 #ifndef __vtkImageSpatialFilter_h
00031 #define __vtkImageSpatialFilter_h
00032 
00033 
00034 #include "vtkImageToImageFilter.h"
00035 
00036 class VTK_IMAGING_EXPORT vtkImageSpatialFilter : public vtkImageToImageFilter
00037 {
00038 public:
00039   static vtkImageSpatialFilter *New();
00040   vtkTypeRevisionMacro(vtkImageSpatialFilter,vtkImageToImageFilter);
00041   void PrintSelf(ostream& os, vtkIndent indent);
00042 
00044   int *GetKernelSize() {return this->KernelSize;}
00045   
00047   int *GetKernelMiddle() {return this->KernelMiddle;}
00048 
00049 protected:
00050   vtkImageSpatialFilter();
00051   ~vtkImageSpatialFilter() {};
00052 
00053   int   KernelSize[3];
00054   int   KernelMiddle[3];      // Index of kernel origin
00055   int   Strides[3];      // Shrink factor
00056   int   HandleBoundaries;     // Output shrinks if boundaries aren't handled
00057 
00058   // Called by the superclass
00059   void ExecuteInformation();
00060   // Override this method if you have to.
00061   virtual void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
00062 
00063   void ComputeOutputWholeExtent(int extent[6], int handleBoundaries);
00064   void ComputeInputUpdateExtent(int extent[6], int wholeExtent[6]);
00065 
00066 private:
00067   vtkImageSpatialFilter(const vtkImageSpatialFilter&);  // Not implemented.
00068   void operator=(const vtkImageSpatialFilter&);  // Not implemented.
00069 };
00070 
00071 #endif
00072 
00073 
00074 
00075 
00076 
00077 
00078 
00079 
00080 
00081