VTK  9.7.1
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 "vtkmAlgorithm.h" // For vtkmAlgorithm
28 #include "vtkmlib/vtkmInitializer.h" // Need for initializing viskores
29 
30 #ifndef __VTK_WRAP__
31 #define vtkGradientFilter vtkmAlgorithm<vtkGradientFilter>
32 #endif
33 
34 VTK_ABI_NAMESPACE_BEGIN
35 class VTKACCELERATORSVTKMFILTERS_EXPORT vtkmGradient : public vtkGradientFilter
36 {
37 public:
39 #ifndef __VTK_WRAP__
40 #undef vtkGradientFilter
41 #endif
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43  static vtkmGradient* New();
44 
45 protected:
51  bool CanProcessInput(vtkDataSet* input);
52 
53  vtkmGradient();
54  ~vtkmGradient() override;
55 
57 
58 private:
59  vtkmGradient(const vtkmGradient&) = delete;
60  void operator=(const vtkmGradient&) = delete;
61  vtkmInitializer Initializer;
62 };
63 
64 VTK_ABI_NAMESPACE_END
65 #endif // vtkmGradient_h
static vtkGradientFilter * New()
Standard methods for instantiation, obtaining type information, and printing.
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, obtaining type information, and printing.
a simple class to control print indentation
Definition: vtkIndent.h:28
A general filter for gradient estimation.
Definition: vtkmGradient.h:35
A general filter for gradient estimation.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
Store zero or more vtkInformation instances.