VTK  9.1.0
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 =========================================================================*/
25 #ifndef vtkImagePadFilter_h
26 #define vtkImagePadFilter_h
27 
28 #include "vtkImagingCoreModule.h" // For export macro
30 
31 class VTKIMAGINGCORE_EXPORT vtkImagePadFilter : public vtkThreadedImageAlgorithm
32 {
33 public:
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
39 
43  void SetOutputWholeExtent(int minX, int maxX, int minY, int maxY, int minZ, int maxZ);
45  int* GetOutputWholeExtent() VTK_SIZEHINT(6) { return this->OutputWholeExtent; }
47 
49 
52  vtkSetMacro(OutputNumberOfScalarComponents, int);
53  vtkGetMacro(OutputNumberOfScalarComponents, int);
55 
56 protected:
58  ~vtkImagePadFilter() override = default;
59 
60  int OutputWholeExtent[6];
62 
65 
66  virtual void ComputeInputUpdateExtent(int inExt[6], int outExt[6], int wholeExtent[6]);
67 
68 private:
69  vtkImagePadFilter(const vtkImagePadFilter&) = delete;
70  void operator=(const vtkImagePadFilter&) = delete;
71 };
72 
73 #endif
Super class for filters that fill in extra pixels.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
virtual void ComputeInputUpdateExtent(int inExt[6], int outExt[6], int wholeExtent[6])
void SetOutputWholeExtent(int minX, int maxX, int minY, int maxY, int minZ, int maxZ)
The image extent of the output has to be set explicitly.
int * GetOutputWholeExtent()
The image extent of the output has to be set explicitly.
~vtkImagePadFilter() override=default
static vtkImagePadFilter * New()
void SetOutputWholeExtent(int extent[6])
The image extent of the output has to be set explicitly.
void GetOutputWholeExtent(int extent[6])
The image extent of the output has to be set explicitly.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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
#define VTK_SIZEHINT(...)