VTK  9.4.20241016
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
46#ifndef vtkImageMagnify_h
47#define vtkImageMagnify_h
48
49#include "vtkImagingCoreModule.h" // For export macro
51
52VTK_ABI_NAMESPACE_BEGIN
53class VTKIMAGINGCORE_EXPORT vtkImageMagnify : public vtkThreadedImageAlgorithm
54{
55public:
58 void PrintSelf(ostream& os, vtkIndent indent) override;
59
61
65 vtkSetVector3Macro(MagnificationFactors, int);
66 vtkGetVector3Macro(MagnificationFactors, int);
68
70
74 vtkSetMacro(Interpolate, vtkTypeBool);
75 vtkGetMacro(Interpolate, vtkTypeBool);
76 vtkBooleanMacro(Interpolate, vtkTypeBool);
78
79protected:
81 ~vtkImageMagnify() override = default;
82
83 int MagnificationFactors[3];
87
89 vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
90 int outExt[6], int id) override;
91
92 void InternalRequestUpdateExtent(int* inExt, int* outExt);
93
94private:
95 vtkImageMagnify(const vtkImageMagnify&) = delete;
96 void operator=(const vtkImageMagnify&) = delete;
97};
98
99VTK_ABI_NAMESPACE_END
100#endif
topologically and geometrically regular array of data
magnify an image by an integer value
static vtkImageMagnify * New()
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.
vtkTypeBool Interpolate
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generic filter that has one input.
int vtkTypeBool
Definition vtkABI.h:64