VTK  9.0.2
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 =========================================================================*/
27 #ifndef vtkImageSpatialAlgorithm_h
28 #define vtkImageSpatialAlgorithm_h
29 
30 #include "vtkImagingGeneralModule.h" // For export macro
32 
33 class VTKIMAGINGGENERAL_EXPORT vtkImageSpatialAlgorithm : public vtkThreadedImageAlgorithm
34 {
35 public:
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
41 
44  vtkGetVector3Macro(KernelSize, int);
46 
48 
51  vtkGetVector3Macro(KernelMiddle, int);
53 
54 protected:
57 
58  int KernelSize[3];
59  int KernelMiddle[3]; // Index of kernel origin
60  int HandleBoundaries; // Output shrinks if boundaries aren't handled
61 
63 
64  void ComputeOutputWholeExtent(int extent[6], int handleBoundaries);
66  void InternalRequestUpdateExtent(int* extent, int* inExtent, int* wholeExtent);
67 
68 private:
70  void operator=(const vtkImageSpatialAlgorithm&) = delete;
71 };
72 
73 #endif
Filters that operate on pixel neighborhoods.
static vtkImageSpatialAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void InternalRequestUpdateExtent(int *extent, int *inExtent, int *wholeExtent)
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
void ComputeOutputWholeExtent(int extent[6], int handleBoundaries)
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generic filter that has one input.
@ extent
Definition: vtkX3D.h:351