VTK  9.4.20241121
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
79#ifndef vtkImageGradient_h
80#define vtkImageGradient_h
81
82#include "vtkImagingGeneralModule.h" // For export macro
84
85VTK_ABI_NAMESPACE_BEGIN
86class VTKIMAGINGGENERAL_EXPORT vtkImageGradient : public vtkThreadedImageAlgorithm
87{
88public:
91 void PrintSelf(ostream& os, vtkIndent indent) override;
92
94
97 vtkSetClampMacro(Dimensionality, int, 2, 3);
98 vtkGetMacro(Dimensionality, int);
100
102
108 vtkSetMacro(HandleBoundaries, vtkTypeBool);
109 vtkGetMacro(HandleBoundaries, vtkTypeBool);
110 vtkBooleanMacro(HandleBoundaries, vtkTypeBool);
112
113protected:
115 ~vtkImageGradient() override = default;
116
119
123
125 vtkImageData*** inData, vtkImageData** outData, int outExt[6], int threadId) override;
126
127private:
128 vtkImageGradient(const vtkImageGradient&) = delete;
129 void operator=(const vtkImageGradient&) = delete;
130};
131
132VTK_ABI_NAMESPACE_END
133#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:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generic filter that has one input.
int vtkTypeBool
Definition vtkABI.h:64