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
34class VTKIMAGINGGENERAL_EXPORT vtkImageSpatialAlgorithm : public vtkThreadedImageAlgorithm
35{
36public:
39 void PrintSelf(ostream& os, vtkIndent indent);
40
42
45 vtkGetVector3Macro(KernelSize,int);
47
49
52 vtkGetVector3Macro(KernelMiddle,int);
54
55protected:
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
69private:
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
Filters that operate on pixel neighborhoods.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to collect information from their inputs and set information f...
static vtkImageSpatialAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void InternalRequestUpdateExtent(int *extent, int *inExtent, int *wholeExtent)
void ComputeOutputWholeExtent(int extent[6], int handleBoundaries)
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
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:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generic filter that has one input.
@ extent
Definition: vtkX3D.h:345