VTK  9.2.20230322
vtkmGradient.h
Go to the documentation of this file.
1 //=============================================================================
2 //
3 // Copyright (c) Kitware, Inc.
4 // All rights reserved.
5 // See LICENSE.txt for details.
6 //
7 // This software is distributed WITHOUT ANY WARRANTY; without even
8 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 // PURPOSE. See the above copyright notice for more information.
10 //
11 // Copyright 2012 Sandia Corporation.
12 // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
13 // the U.S. Government retains certain rights in this software.
14 //
15 //=============================================================================
33 #ifndef vtkmGradient_h
34 #define vtkmGradient_h
35 
36 #include "vtkAcceleratorsVTKmFiltersModule.h" //required for correct implementation
37 #include "vtkGradientFilter.h"
38 #include "vtkmlib/vtkmInitializer.h" // Need for initializing vtk-m
39 
40 VTK_ABI_NAMESPACE_BEGIN
41 class VTKACCELERATORSVTKMFILTERS_EXPORT vtkmGradient : public vtkGradientFilter
42 {
43 public:
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46  static vtkmGradient* New();
47 
49 
55  vtkGetMacro(ForceVTKm, vtkTypeBool);
56  vtkSetMacro(ForceVTKm, vtkTypeBool);
57  vtkBooleanMacro(ForceVTKm, vtkTypeBool);
59 
60 protected:
67 
69  ~vtkmGradient() override;
70 
72 
73  vtkTypeBool ForceVTKm = false;
74 
75 private:
76  vtkmGradient(const vtkmGradient&) = delete;
77  void operator=(const vtkmGradient&) = delete;
78  vtkmInitializer Initializer;
79 };
80 
81 VTK_ABI_NAMESPACE_END
82 #endif // vtkmGradient_h
abstract class to specify dataset behavior
Definition: vtkDataSet.h:174
A general filter for gradient estimation.
a simple class to control print indentation
Definition: vtkIndent.h:120
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
A general filter for gradient estimation.
Definition: vtkmGradient.h:42
bool CanProcessInput(vtkDataSet *input)
Check if the input dataset and parameters combination is supported by this filter.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkmGradient * New()
~vtkmGradient() override
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:71