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 =========================================================================*/
26 #ifndef vtkImageMagnify_h
27 #define vtkImageMagnify_h
28 
29 #include "vtkImagingCoreModule.h" // For export macro
31 
32 class VTKIMAGINGCORE_EXPORT vtkImageMagnify : public vtkThreadedImageAlgorithm
33 {
34 public:
35  static vtkImageMagnify *New();
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
40 
44  vtkSetVector3Macro(MagnificationFactors,int);
45  vtkGetVector3Macro(MagnificationFactors,int);
47 
49 
53  vtkSetMacro(Interpolate,vtkTypeBool);
54  vtkGetMacro(Interpolate,vtkTypeBool);
55  vtkBooleanMacro(Interpolate,vtkTypeBool);
57 
58 protected:
60  ~vtkImageMagnify() override {}
61 
62  int MagnificationFactors[3];
66  vtkInformationVector *) override;
69  vtkInformationVector *) override;
70 
71  void ThreadedRequestData(vtkInformation *request,
72  vtkInformationVector **inputVector,
73  vtkInformationVector *outputVector,
74  vtkImageData ***inData,
75  vtkImageData **outData,
76  int outExt[6],
77  int id) override;
78 
79  void InternalRequestUpdateExtent(int *inExt, int *outExt);
80 
81 private:
82  vtkImageMagnify(const vtkImageMagnify&) = delete;
83  void operator=(const vtkImageMagnify&) = delete;
84 };
85 
86 #endif
87 
88 
89 
90 
~vtkImageMagnify() override
Store vtkAlgorithm input/output information.
magnify an image by an integer value
vtkTypeBool Interpolate
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
int vtkTypeBool
Definition: vtkABI.h:69
Generic filter that has one input.
a simple class to control print indentation
Definition: vtkIndent.h:33
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
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,...
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.