VTK  9.4.20241222
vtkmGradient.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright (c) Kitware, Inc.
3// SPDX-FileCopyrightText: Copyright 2012 Sandia Corporation.
4// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
22#ifndef vtkmGradient_h
23#define vtkmGradient_h
24
25#include "vtkAcceleratorsVTKmFiltersModule.h" //required for correct implementation
26#include "vtkGradientFilter.h"
27#include "vtkmlib/vtkmInitializer.h" // Need for initializing vtk-m
28
29VTK_ABI_NAMESPACE_BEGIN
30class VTKACCELERATORSVTKMFILTERS_EXPORT vtkmGradient : public vtkGradientFilter
31{
32public:
34 void PrintSelf(ostream& os, vtkIndent indent) override;
35 static vtkmGradient* New();
36
38
44 vtkGetMacro(ForceVTKm, vtkTypeBool);
45 vtkSetMacro(ForceVTKm, vtkTypeBool);
46 vtkBooleanMacro(ForceVTKm, vtkTypeBool);
48
49protected:
56
58 ~vtkmGradient() override;
59
61
62 vtkTypeBool ForceVTKm = false;
63
64private:
65 vtkmGradient(const vtkmGradient&) = delete;
66 void operator=(const vtkmGradient&) = delete;
67 vtkmInitializer Initializer;
68};
69
70VTK_ABI_NAMESPACE_END
71#endif // vtkmGradient_h
abstract class to specify dataset behavior
Definition vtkDataSet.h:165
A general filter for gradient estimation.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
A general filter for gradient estimation.
bool CanProcessInput(vtkDataSet *input)
Check if the input dataset and parameters combination is supported by this filter.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, obtaining type information, and printing.
~vtkmGradient() override
static vtkmGradient * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
int vtkTypeBool
Definition vtkABI.h:64