VTK  9.7.1
vtkImageConstantPad.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
18 #ifndef vtkImageConstantPad_h
19 #define vtkImageConstantPad_h
20 
21 #include "vtkImagePadFilter.h"
22 #include "vtkImagingCoreModule.h" // For export macro
23 
24 VTK_ABI_NAMESPACE_BEGIN
25 class vtkDoubleArray;
26 
27 class VTKIMAGINGCORE_EXPORT vtkImageConstantPad : public vtkImagePadFilter
28 {
29 public:
30  static vtkImageConstantPad* New();
32 
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
36 
41  vtkSetMacro(Constant, double);
42  vtkGetMacro(Constant, double);
44 
46 
51  virtual void SetComponentConstants(vtkDoubleArray* values);
52  vtkGetObjectMacro(ComponentConstants, vtkDoubleArray);
54 
55 protected:
57  ~vtkImageConstantPad() override;
58 
59  double Constant;
61 
62  void ThreadedRequestData(vtkInformation* request, vtkInformationVector** inputVector,
63  vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
64  VTK_FUTURE_CONST int ext[6], int id) override;
65 
66 private:
68  void operator=(const vtkImageConstantPad&) = delete;
69 };
70 
71 VTK_ABI_NAMESPACE_END
72 #endif
static vtkImagePadFilter * New()
Store vtkAlgorithm input/output information.
dynamic, self-adjusting array of double
Super class for filters that fill in extra pixels.
a simple class to control print indentation
Definition: vtkIndent.h:28
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, VTK_FUTURE_CONST int extent[6], int threadId)
If the subclass does not define an Execute method, then the task will be broken up, multiple threads will be spawned, and each thread will call this method.
Makes image larger by padding with constant.
Store zero or more vtkInformation instances.
vtkDoubleArray * ComponentConstants