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
26#ifndef vtkImageMagnify_h
27#define vtkImageMagnify_h
28
29#include "vtkImagingCoreModule.h" // For export macro
31
32VTK_ABI_NAMESPACE_BEGIN
33class VTKIMAGINGCORE_EXPORT vtkImageMagnify : public vtkThreadedImageAlgorithm
34{
35public:
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
41
45 vtkSetVector3Macro(MagnificationFactors, int);
46 vtkGetVector3Macro(MagnificationFactors, int);
48
50
54 vtkSetMacro(Interpolate, vtkTypeBool);
55 vtkGetMacro(Interpolate, vtkTypeBool);
56 vtkBooleanMacro(Interpolate, vtkTypeBool);
58
59protected:
61 ~vtkImageMagnify() override = default;
62
63 int MagnificationFactors[3];
67
69 vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
70 int outExt[6], int id) override;
71
72 void InternalRequestUpdateExtent(int* inExt, int* outExt);
73
74private:
75 vtkImageMagnify(const vtkImageMagnify&) = delete;
76 void operator=(const vtkImageMagnify&) = delete;
77};
78
79VTK_ABI_NAMESPACE_END
80#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:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generic filter that has one input.
int vtkTypeBool
Definition vtkABI.h:64