VTK  9.3.0
vtkImageGradient.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
20 #ifndef vtkImageGradient_h
21 #define vtkImageGradient_h
22 
23 #include "vtkImagingGeneralModule.h" // For export macro
25 
26 VTK_ABI_NAMESPACE_BEGIN
27 class VTKIMAGINGGENERAL_EXPORT vtkImageGradient : public vtkThreadedImageAlgorithm
28 {
29 public:
30  static vtkImageGradient* New();
32  void PrintSelf(ostream& os, vtkIndent indent) override;
33 
35 
38  vtkSetClampMacro(Dimensionality, int, 2, 3);
39  vtkGetMacro(Dimensionality, int);
41 
43 
49  vtkSetMacro(HandleBoundaries, vtkTypeBool);
50  vtkGetMacro(HandleBoundaries, vtkTypeBool);
51  vtkBooleanMacro(HandleBoundaries, vtkTypeBool);
53 
54 protected:
56  ~vtkImageGradient() override = default;
57 
60 
64 
66  vtkImageData*** inData, vtkImageData** outData, int outExt[6], int threadId) override;
67 
68 private:
69  vtkImageGradient(const vtkImageGradient&) = delete;
70  void operator=(const vtkImageGradient&) = delete;
71 };
72 
73 VTK_ABI_NAMESPACE_END
74 #endif
topologically and geometrically regular array of data
Definition: vtkImageData.h:43
Computes the gradient vector.
static vtkImageGradient * New()
~vtkImageGradient() override=default
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ThreadedRequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *, vtkImageData ***inData, vtkImageData **outData, int outExt[6], int threadId) override
If the subclass does not define an Execute method, then the task will be broken up,...
vtkTypeBool HandleBoundaries
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
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