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 =========================================================================*/
27 #ifndef vtkImageSpatialAlgorithm_h
28 #define vtkImageSpatialAlgorithm_h
29 
30 
31 #include "vtkImagingGeneralModule.h" // For export macro
33 
34 class VTKIMAGINGGENERAL_EXPORT vtkImageSpatialAlgorithm : public vtkThreadedImageAlgorithm
35 {
36 public:
37  static vtkImageSpatialAlgorithm *New();
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
42 
45  vtkGetVector3Macro(KernelSize,int);
47 
49 
52  vtkGetVector3Macro(KernelMiddle,int);
54 
55 protected:
58 
59  int KernelSize[3];
60  int KernelMiddle[3]; // Index of kernel origin
61  int HandleBoundaries; // Output shrinks if boundaries aren't handled
62 
64 
65  void ComputeOutputWholeExtent(int extent[6], int handleBoundaries);
67  void InternalRequestUpdateExtent(int *extent, int *inExtent, int *wholeExtent);
68 
69 private:
70  vtkImageSpatialAlgorithm(const vtkImageSpatialAlgorithm&) VTK_DELETE_FUNCTION;
71  void operator=(const vtkImageSpatialAlgorithm&) VTK_DELETE_FUNCTION;
72 };
73 
74 #endif
75 
76 
77 
78 
79 
80 
81 
82 
83 
84 
Store vtkAlgorithm input/output information.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
Generic filter that has one input.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
Filters that operate on pixel neighborhoods.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.