VTK
vtkImageConstantPad.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageConstantPad.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 vtkImageConstantPad_h
28 #define vtkImageConstantPad_h
29 
30 
31 #include "vtkImagingCoreModule.h" // For export macro
32 #include "vtkImagePadFilter.h"
33 
34 class VTKIMAGINGCORE_EXPORT vtkImageConstantPad : public vtkImagePadFilter
35 {
36 public:
37  static vtkImageConstantPad *New();
39 
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
43 
46  vtkSetMacro(Constant, double);
47  vtkGetMacro(Constant, double);
49 
50 
51 protected:
53  ~vtkImageConstantPad() override {}
54 
55  double Constant;
56 
57  void ThreadedRequestData (vtkInformation* request,
58  vtkInformationVector** inputVector,
59  vtkInformationVector* outputVector,
60  vtkImageData ***inData, vtkImageData **outData,
61  int ext[6], int id) override;
62 private:
64  void operator=(const vtkImageConstantPad&) = delete;
65 };
66 
67 #endif
68 
69 
70 
static vtkImagePadFilter * New()
Store vtkAlgorithm input/output information.
Super class for filters that fill in extra pixels.
a simple class to control print indentation
Definition: vtkIndent.h:33
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, 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.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Makes image larger by padding with constant.
Store zero or more vtkInformation instances.