VTK  9.3.0
vtkImageMagnify.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
17 #ifndef vtkImageMagnify_h
18 #define vtkImageMagnify_h
19 
20 #include "vtkImagingCoreModule.h" // For export macro
22 
23 VTK_ABI_NAMESPACE_BEGIN
24 class VTKIMAGINGCORE_EXPORT vtkImageMagnify : public vtkThreadedImageAlgorithm
25 {
26 public:
27  static vtkImageMagnify* New();
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
32 
36  vtkSetVector3Macro(MagnificationFactors, int);
37  vtkGetVector3Macro(MagnificationFactors, int);
39 
41 
45  vtkSetMacro(Interpolate, vtkTypeBool);
46  vtkGetMacro(Interpolate, vtkTypeBool);
47  vtkBooleanMacro(Interpolate, vtkTypeBool);
49 
50 protected:
52  ~vtkImageMagnify() override = default;
53 
54  int MagnificationFactors[3];
58 
60  vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
61  int outExt[6], int id) override;
62 
63  void InternalRequestUpdateExtent(int* inExt, int* outExt);
64 
65 private:
66  vtkImageMagnify(const vtkImageMagnify&) = delete;
67  void operator=(const vtkImageMagnify&) = delete;
68 };
69 
70 VTK_ABI_NAMESPACE_END
71 #endif
topologically and geometrically regular array of data
Definition: vtkImageData.h:43
magnify an image by an integer value
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int outExt[6], int id) override
If the subclass does not define an Execute method, then the task will be broken up,...
void InternalRequestUpdateExtent(int *inExt, int *outExt)
~vtkImageMagnify() override=default
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkImageMagnify * New()
vtkTypeBool Interpolate
a simple class to control print indentation
Definition: vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generic filter that has one input.
int vtkTypeBool
Definition: vtkABI.h:64