VTK  9.3.1
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
vtkTypeBool HandleBoundaries
Store vtkAlgorithm input/output information.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
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...
Computes the gradient vector.
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.