VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkImageSpatialAlgorithm.h 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 "vtkImagingGeneralModule.h" // For export macro 00031 #include "vtkThreadedImageAlgorithm.h" 00032 00033 class VTKIMAGINGGENERAL_EXPORT vtkImageSpatialAlgorithm : public vtkThreadedImageAlgorithm 00034 { 00035 public: 00036 static vtkImageSpatialAlgorithm *New(); 00037 vtkTypeMacro(vtkImageSpatialAlgorithm,vtkThreadedImageAlgorithm); 00038 void PrintSelf(ostream& os, vtkIndent indent); 00039 00041 00042 vtkGetVector3Macro(KernelSize,int); 00044 00046 00047 vtkGetVector3Macro(KernelMiddle,int); 00049 00050 protected: 00051 vtkImageSpatialAlgorithm(); 00052 ~vtkImageSpatialAlgorithm() {} 00053 00054 int KernelSize[3]; 00055 int KernelMiddle[3]; // Index of kernel origin 00056 int HandleBoundaries; // Output shrinks if boundaries aren't handled 00057 00058 virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00059 00060 void ComputeOutputWholeExtent(int extent[6], int handleBoundaries); 00061 virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00062 void InternalRequestUpdateExtent(int *extent, int *inExtent, int *wholeExtent); 00063 00064 private: 00065 vtkImageSpatialAlgorithm(const vtkImageSpatialAlgorithm&); // Not implemented. 00066 void operator=(const vtkImageSpatialAlgorithm&); // Not implemented. 00067 }; 00068 00069 #endif 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079