VTK  9.3.1
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 
59  void ThreadedRequestData(vtkInformation* request, vtkInformationVector** inputVector,
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
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:64
Generic filter that has one input.
a simple class to control print indentation
Definition: vtkIndent.h:28
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
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, multiple threads will be spawned, and each thread will call this method.
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.