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
29#ifndef vtkImageGradient_h
30#define vtkImageGradient_h
31
32#include "vtkImagingGeneralModule.h" // For export macro
34
35VTK_ABI_NAMESPACE_BEGIN
36class VTKIMAGINGGENERAL_EXPORT vtkImageGradient : public vtkThreadedImageAlgorithm
37{
38public:
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
44
47 vtkSetClampMacro(Dimensionality, int, 2, 3);
48 vtkGetMacro(Dimensionality, int);
50
52
58 vtkSetMacro(HandleBoundaries, vtkTypeBool);
59 vtkGetMacro(HandleBoundaries, vtkTypeBool);
60 vtkBooleanMacro(HandleBoundaries, vtkTypeBool);
62
63protected:
65 ~vtkImageGradient() override = default;
66
69
73
75 vtkImageData*** inData, vtkImageData** outData, int outExt[6], int threadId) override;
76
77private:
78 vtkImageGradient(const vtkImageGradient&) = delete;
79 void operator=(const vtkImageGradient&) = delete;
80};
81
82VTK_ABI_NAMESPACE_END
83#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:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generic filter that has one input.
int vtkTypeBool
Definition vtkABI.h:64