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 
30 #include "vtkImagingGeneralModule.h" // For export macro
32 
34 {
35 public:
36  static vtkImageSpatialAlgorithm *New();
38  void PrintSelf(ostream& os, vtkIndent indent);
39 
41 
42  vtkGetVector3Macro(KernelSize,int);
44 
46 
47  vtkGetVector3Macro(KernelMiddle,int);
49 
50 protected:
53 
54  int KernelSize[3];
55  int KernelMiddle[3]; // Index of kernel origin
56  int HandleBoundaries; // Output shrinks if boundaries aren't handled
57 
59 
60  void ComputeOutputWholeExtent(int extent[6], int handleBoundaries);
62  void InternalRequestUpdateExtent(int *extent, int *inExtent, int *wholeExtent);
63 
64 private:
65  vtkImageSpatialAlgorithm(const vtkImageSpatialAlgorithm&); // Not implemented.
66  void operator=(const vtkImageSpatialAlgorithm&); // Not implemented.
67 };
68 
69 #endif
70 
71 
72 
73 
74 
75 
76 
77 
78 
79 
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:38
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Filters that operate on pixel neighborhoods.
#define VTKIMAGINGGENERAL_EXPORT
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()