VTK  9.0.1
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:
34  static vtkImagePadFilter* New();
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
39 
42  void SetOutputWholeExtent(int extent[6]);
43  void SetOutputWholeExtent(int minX, int maxX, int minY, int maxY, int minZ, int maxZ);
44  void GetOutputWholeExtent(int extent[6]);
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 {}
59 
60  int OutputWholeExtent[6];
62 
65 
66  virtual void ComputeInputUpdateExtent(int inExt[6], int outExt[6], int wExt[6]);
67 
68 private:
69  vtkImagePadFilter(const vtkImagePadFilter&) = delete;
70  void operator=(const vtkImagePadFilter&) = delete;
71 };
72 
73 #endif
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkThreadedImageAlgorithm
Generic filter that has one input.
Definition: vtkThreadedImageAlgorithm.h:37
vtkImagePadFilter::GetOutputWholeExtent
int * GetOutputWholeExtent()
Definition: vtkImagePadFilter.h:45
vtkImagePadFilter::~vtkImagePadFilter
~vtkImagePadFilter() override
Definition: vtkImagePadFilter.h:58
vtkThreadedImageAlgorithm.h
vtkImageAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
VTK_SIZEHINT
#define VTK_SIZEHINT(...)
Definition: vtkWrappingHints.h:45
vtkImageAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkThreadedImageAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkImagePadFilter
Super class for filters that fill in extra pixels.
Definition: vtkImagePadFilter.h:31
vtkX3D::extent
@ extent
Definition: vtkX3D.h:351
vtkImagePadFilter::OutputNumberOfScalarComponents
int OutputNumberOfScalarComponents
Definition: vtkImagePadFilter.h:61