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

vtkImageSpatialAlgorithm.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageSpatialAlgorithm.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 =========================================================================*/
00026 #ifndef __vtkImageSpatialAlgorithm_h
00027 #define __vtkImageSpatialAlgorithm_h
00028 
00029 
00030 #include "vtkThreadedImageAlgorithm.h"
00031 
00032 class VTK_IMAGING_EXPORT vtkImageSpatialAlgorithm : public vtkThreadedImageAlgorithm
00033 {
00034 public:
00035   static vtkImageSpatialAlgorithm *New();
00036   vtkTypeRevisionMacro(vtkImageSpatialAlgorithm,vtkThreadedImageAlgorithm);
00037   void PrintSelf(ostream& os, vtkIndent indent);
00038 
00040   int *GetKernelSize() {return this->KernelSize;}
00041   
00043   int *GetKernelMiddle() {return this->KernelMiddle;}
00044 
00045 protected:
00046   vtkImageSpatialAlgorithm();
00047   ~vtkImageSpatialAlgorithm() {};
00048 
00049   int   KernelSize[3];
00050   int   KernelMiddle[3];      // Index of kernel origin
00051   int   Strides[3];      // Shrink factor
00052   int   HandleBoundaries;     // Output shrinks if boundaries aren't handled
00053 
00054   virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00055 
00056   void ComputeOutputWholeExtent(int extent[6], int handleBoundaries);
00057   virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00058   void InternalRequestUpdateExtent(int *extent, int *inExtent, int *wholeExtent);
00059 
00060 private:
00061   vtkImageSpatialAlgorithm(const vtkImageSpatialAlgorithm&);  // Not implemented.
00062   void operator=(const vtkImageSpatialAlgorithm&);  // Not implemented.
00063 };
00064 
00065 #endif
00066 
00067 
00068 
00069 
00070 
00071 
00072 
00073 
00074 
00075 

Generated on Mon Jan 21 23:07:30 2008 for VTK by  doxygen 1.4.3-20050530