VTK  9.1.0
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=========================================================================*/
55#ifndef vtkImageMagnify_h
56#define vtkImageMagnify_h
57
58#include "vtkImagingCoreModule.h" // For export macro
60
61class VTKIMAGINGCORE_EXPORT vtkImageMagnify : public vtkThreadedImageAlgorithm
62{
63public:
66 void PrintSelf(ostream& os, vtkIndent indent) override;
67
69
73 vtkSetVector3Macro(MagnificationFactors, int);
74 vtkGetVector3Macro(MagnificationFactors, int);
76
78
82 vtkSetMacro(Interpolate, vtkTypeBool);
83 vtkGetMacro(Interpolate, vtkTypeBool);
84 vtkBooleanMacro(Interpolate, vtkTypeBool);
86
87protected:
89 ~vtkImageMagnify() override = default;
90
91 int MagnificationFactors[3];
95
97 vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
98 int outExt[6], int id) override;
99
100 void InternalRequestUpdateExtent(int* inExt, int* outExt);
101
102private:
103 vtkImageMagnify(const vtkImageMagnify&) = delete;
104 void operator=(const vtkImageMagnify&) = delete;
105};
106
107#endif
topologically and geometrically regular array of data
Definition: vtkImageData.h:157
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:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generic filter that has one input.
int vtkTypeBool
Definition: vtkABI.h:69