VTK
vtkImageMagnify.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageMagnify.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 =========================================================================*/
29 #ifndef vtkImageMagnify_h
30 #define vtkImageMagnify_h
31 
32 #include "vtkImagingCoreModule.h" // For export macro
34 
35 class VTKIMAGINGCORE_EXPORT vtkImageMagnify : public vtkThreadedImageAlgorithm
36 {
37 public:
38  static vtkImageMagnify *New();
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
43 
47  vtkSetVector3Macro(MagnificationFactors,int);
48  vtkGetVector3Macro(MagnificationFactors,int);
50 
52 
56  vtkSetMacro(Interpolate,vtkTypeBool);
57  vtkGetMacro(Interpolate,vtkTypeBool);
58  vtkBooleanMacro(Interpolate,vtkTypeBool);
60 
61 protected:
63  ~vtkImageMagnify() override {}
64 
65  int MagnificationFactors[3];
69  vtkInformationVector *) override;
72  vtkInformationVector *) override;
73 
74  void ThreadedRequestData(vtkInformation *request,
75  vtkInformationVector **inputVector,
76  vtkInformationVector *outputVector,
77  vtkImageData ***inData,
78  vtkImageData **outData,
79  int outExt[6],
80  int id) override;
81 
82  void InternalRequestUpdateExtent(int *inExt, int *outExt);
83 
84 private:
85  vtkImageMagnify(const vtkImageMagnify&) = delete;
86  void operator=(const vtkImageMagnify&) = delete;
87 };
88 
89 #endif
90 
91 
92 
93 
vtkThreadedImageAlgorithm::ThreadedRequestData
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,...
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkThreadedImageAlgorithm
Generic filter that has one input.
Definition: vtkThreadedImageAlgorithm.h:43
vtkThreadedImageAlgorithm.h
vtkImageMagnify
magnify an image by an integer value
Definition: vtkImageMagnify.h:35
vtkImageMagnify::~vtkImageMagnify
~vtkImageMagnify() override
Definition: vtkImageMagnify.h:63
vtkImageAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
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.
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkImageMagnify::Interpolate
vtkTypeBool Interpolate
Definition: vtkImageMagnify.h:66
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69