VTK  9.0.1
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
vtkImageSpatialAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageSpatialAlgorithm::ComputeOutputWholeExtent
void ComputeOutputWholeExtent(int extent[6], int handleBoundaries)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:36
vtkImageSpatialAlgorithm::~vtkImageSpatialAlgorithm
~vtkImageSpatialAlgorithm() override
Definition: vtkImageSpatialAlgorithm.h:56
vtkThreadedImageAlgorithm
Generic filter that has one input.
Definition: vtkThreadedImageAlgorithm.h:38
vtkImageSpatialAlgorithm::vtkImageSpatialAlgorithm
vtkImageSpatialAlgorithm()
vtkThreadedImageAlgorithm.h
vtkImageSpatialAlgorithm::RequestUpdateExtent
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkImageSpatialAlgorithm::New
static vtkImageSpatialAlgorithm * New()
vtkImageSpatialAlgorithm::InternalRequestUpdateExtent
void InternalRequestUpdateExtent(int *extent, int *inExtent, int *wholeExtent)
vtkImageSpatialAlgorithm::HandleBoundaries
int HandleBoundaries
Definition: vtkImageSpatialAlgorithm.h:60
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:65
vtkX3D::extent
@ extent
Definition: vtkX3D.h:351
vtkImageSpatialAlgorithm
Filters that operate on pixel neighborhoods.
Definition: vtkImageSpatialAlgorithm.h:34
vtkImageSpatialAlgorithm::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...