VTK
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) VTK_OVERRIDE;
37 
39 
43  void SetOutputWholeExtent(int minX, int maxX, int minY, int maxY,
44  int minZ, int maxZ);
46  int *GetOutputWholeExtent() {return this->OutputWholeExtent;}
48 
50 
53  vtkSetMacro(OutputNumberOfScalarComponents, int);
54  vtkGetMacro(OutputNumberOfScalarComponents, int);
56 
57 protected:
60 
61  int OutputWholeExtent[6];
63 
66  vtkInformationVector*) VTK_OVERRIDE;
69  vtkInformationVector*) VTK_OVERRIDE;
70 
71  virtual void ComputeInputUpdateExtent (int inExt[6], int outExt[6],
72  int wExt[6]);
73 
74 private:
75  vtkImagePadFilter(const vtkImagePadFilter&) VTK_DELETE_FUNCTION;
76  void operator=(const vtkImagePadFilter&) VTK_DELETE_FUNCTION;
77 };
78 
79 #endif
80 
81 
82 
vtkImagePadFilter::~vtkImagePadFilter
~vtkImagePadFilter()
Definition: vtkImagePadFilter.h:59
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkImagePadFilter::New
static vtkImagePadFilter * New()
vtkImagePadFilter::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkThreadedImageAlgorithm
Generic filter that has one input.
Definition: vtkThreadedImageAlgorithm.h:44
vtkImagePadFilter::GetOutputWholeExtent
int * GetOutputWholeExtent()
Definition: vtkImagePadFilter.h:46
vtkThreadedImageAlgorithm.h
vtkImagePadFilter::SetOutputWholeExtent
void SetOutputWholeExtent(int extent[6])
The image extent of the output has to be set explicitly.
vtkImagePadFilter::SetOutputWholeExtent
void SetOutputWholeExtent(int minX, int maxX, int minY, int maxY, int minZ, int maxZ)
vtkImagePadFilter::ComputeInputUpdateExtent
virtual void ComputeInputUpdateExtent(int inExt[6], int outExt[6], int wExt[6])
vtkImagePadFilter::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkImagePadFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkImagePadFilter
Super class for filters that fill in extra pixels.
Definition: vtkImagePadFilter.h:32
vtkX3D::extent
@ extent
Definition: vtkX3D.h:345
vtkImagePadFilter::OutputNumberOfScalarComponents
int OutputNumberOfScalarComponents
Definition: vtkImagePadFilter.h:62
vtkImagePadFilter::GetOutputWholeExtent
void GetOutputWholeExtent(int extent[6])
vtkImagePadFilter::vtkImagePadFilter
vtkImagePadFilter()