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

vtkImageSpatialFilter.h

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