VTK
vtkImageSpatialAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageSpatialAlgorithm.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 =========================================================================*/
26 #ifndef __vtkImageSpatialAlgorithm_h
27 #define __vtkImageSpatialAlgorithm_h
28 
29 
31 
33 {
34 public:
35  static vtkImageSpatialAlgorithm *New();
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
40 
41  vtkGetVector3Macro(KernelSize,int);
43 
45 
46  vtkGetVector3Macro(KernelMiddle,int);
48 
49 protected:
52 
53  int KernelSize[3];
54  int KernelMiddle[3]; // Index of kernel origin
55  int HandleBoundaries; // Output shrinks if boundaries aren't handled
56 
58 
59  void ComputeOutputWholeExtent(int extent[6], int handleBoundaries);
61  void InternalRequestUpdateExtent(int *extent, int *inExtent, int *wholeExtent);
62 
63 private:
64  vtkImageSpatialAlgorithm(const vtkImageSpatialAlgorithm&); // Not implemented.
65  void operator=(const vtkImageSpatialAlgorithm&); // Not implemented.
66 };
67 
68 #endif
69 
70 
71 
72 
73 
74 
75 
76 
77 
78 
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent)
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Generic filter that has one input..
a simple class to control print indentation
Definition: vtkIndent.h:37
#define VTK_IMAGING_EXPORT
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Filters that operate on pixel neighborhoods.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()