VTK
vtkImageSpatialFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageSpatialFilter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
33 #ifndef __vtkImageSpatialFilter_h
34 #define __vtkImageSpatialFilter_h
35 
36 
37 #include "vtkImageToImageFilter.h"
38 
40 {
41 public:
42  static vtkImageSpatialFilter *New();
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47 
48  vtkGetVector3Macro(KernelSize,int);
50 
52 
53  vtkGetVector3Macro(KernelMiddle,int);
55 
56 protected:
59 
60  int KernelSize[3];
61  int KernelMiddle[3]; // Index of kernel origin
62  int HandleBoundaries; // Output shrinks if boundaries aren't handled
63 
64  // Called by the superclass
65  void ExecuteInformation();
66  // Override this method if you have to.
67  virtual void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
68 
69  void ComputeOutputWholeExtent(int extent[6], int handleBoundaries);
70  void ComputeInputUpdateExtent(int extent[6], int wholeExtent[6]);
71 
72 private:
73  vtkImageSpatialFilter(const vtkImageSpatialFilter&); // Not implemented.
74  void operator=(const vtkImageSpatialFilter&); // Not implemented.
75 };
76 
77 #endif
78 
79 
80 
81 
82 
83 
84 
85 
86 
87