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
26VTK_ABI_NAMESPACE_BEGIN
27class VTKIMAGINGGENERAL_EXPORT vtkImageGradient : public vtkThreadedImageAlgorithm
28{
29public:
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
54protected:
56 ~vtkImageGradient() override = default;
57
60
64
66 vtkImageData*** inData, vtkImageData** outData, int outExt[6], int threadId) override;
67
68private:
69 vtkImageGradient(const vtkImageGradient&) = delete;
70 void operator=(const vtkImageGradient&) = delete;
71};
72
73VTK_ABI_NAMESPACE_END
74#endif
topologically and geometrically regular array of data
Computes the gradient vector.
~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 in response to a REQUEST_DATA request from the executive.
static vtkImageGradient * New()
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