VTK  9.3.1
vtkImagePadFilter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
13 #ifndef vtkImagePadFilter_h
14 #define vtkImagePadFilter_h
15 
16 #include "vtkImagingCoreModule.h" // For export macro
18 
19 VTK_ABI_NAMESPACE_BEGIN
20 class VTKIMAGINGCORE_EXPORT vtkImagePadFilter : public vtkThreadedImageAlgorithm
21 {
22 public:
23  static vtkImagePadFilter* New();
25  void PrintSelf(ostream& os, vtkIndent indent) override;
26 
28 
31  void SetOutputWholeExtent(int extent[6]);
32  void SetOutputWholeExtent(int minX, int maxX, int minY, int maxY, int minZ, int maxZ);
33  void GetOutputWholeExtent(int extent[6]);
34  int* GetOutputWholeExtent() VTK_SIZEHINT(6) { return this->OutputWholeExtent; }
36 
38 
41  vtkSetMacro(OutputNumberOfScalarComponents, int);
42  vtkGetMacro(OutputNumberOfScalarComponents, int);
44 
45 protected:
47  ~vtkImagePadFilter() override = default;
48 
49  int OutputWholeExtent[6];
51 
54 
55  virtual void ComputeInputUpdateExtent(int inExt[6], int outExt[6], int wholeExtent[6]);
56 
57 private:
58  vtkImagePadFilter(const vtkImagePadFilter&) = delete;
59  void operator=(const vtkImagePadFilter&) = delete;
60 };
61 
62 VTK_ABI_NAMESPACE_END
63 #endif
Store vtkAlgorithm input/output information.
int * GetOutputWholeExtent()
The image extent of the output has to be set explicitly.
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.
Super class for filters that fill in extra pixels.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
#define VTK_SIZEHINT(...)
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.