VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkImagePadFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImagePadFilter.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 =========================================================================*/
24 #ifndef __vtkImagePadFilter_h
25 #define __vtkImagePadFilter_h
26 
27 #include "vtkImagingCoreModule.h" // For export macro
28 #include "vtkThreadedImageAlgorithm.h"
29 
30 class VTKIMAGINGCORE_EXPORT vtkImagePadFilter : public vtkThreadedImageAlgorithm
31 {
32 public:
33  static vtkImagePadFilter *New();
34  vtkTypeMacro(vtkImagePadFilter,vtkThreadedImageAlgorithm);
35  void PrintSelf(ostream& os, vtkIndent indent);
36 
38 
39  void SetOutputWholeExtent(int extent[6]);
40  void SetOutputWholeExtent(int minX, int maxX, int minY, int maxY,
41  int minZ, int maxZ);
42  void GetOutputWholeExtent(int extent[6]);
43  int *GetOutputWholeExtent() {return this->OutputWholeExtent;}
45 
47 
48  vtkSetMacro(OutputNumberOfScalarComponents, int);
49  vtkGetMacro(OutputNumberOfScalarComponents, int);
51 
52 protected:
55 
56  int OutputWholeExtent[6];
58 
59  virtual int RequestInformation (vtkInformation*,
60  vtkInformationVector**,
61  vtkInformationVector*);
62  virtual int RequestUpdateExtent(vtkInformation*,
63  vtkInformationVector**,
64  vtkInformationVector*);
65 
66  virtual void ComputeInputUpdateExtent (int inExt[6], int outExt[6],
67  int wExt[6]);
68 
69 private:
70  vtkImagePadFilter(const vtkImagePadFilter&); // Not implemented.
71  void operator=(const vtkImagePadFilter&); // Not implemented.
72 };
73 
74 #endif
75 
76 
77 
Super class for filters that fill in extra pixels.