VTK  9.3.1
vtkmThreshold.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
20 #ifndef vtkmThreshold_h
21 #define vtkmThreshold_h
22 
23 #include "vtkAcceleratorsVTKmFiltersModule.h" //required for correct implementation
24 #include "vtkThreshold.h"
25 #include "vtkmlib/vtkmInitializer.h" // Need for initializing vtk-m
26 
27 VTK_ABI_NAMESPACE_BEGIN
28 class VTKACCELERATORSVTKMFILTERS_EXPORT vtkmThreshold : public vtkThreshold
29 {
30 public:
31  vtkTypeMacro(vtkmThreshold, vtkThreshold);
32  void PrintSelf(ostream& os, vtkIndent indent) override;
33 
34  static vtkmThreshold* New();
35 
37 
43  vtkGetMacro(ForceVTKm, vtkTypeBool);
44  vtkSetMacro(ForceVTKm, vtkTypeBool);
45  vtkBooleanMacro(ForceVTKm, vtkTypeBool);
47 
48 protected:
49  vtkmThreshold();
50  ~vtkmThreshold() override;
51 
53 
54  vtkTypeBool ForceVTKm = false;
55 
56 private:
57  vtkmThreshold(const vtkmThreshold&) = delete;
58  void operator=(const vtkmThreshold&) = delete;
59  vtkmInitializer Initializer;
60 };
61 
62 VTK_ABI_NAMESPACE_END
63 #endif // vtkmThreshold_h
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
extracts cells where scalar value in cell satisfies threshold criterion
Definition: vtkmThreshold.h:28
static vtkThreshold * New()
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int vtkTypeBool
Definition: vtkABI.h:64
extracts cells where scalar value in cell satisfies threshold criterion
Definition: vtkThreshold.h:60
a simple class to control print indentation
Definition: vtkIndent.h:28
Store zero or more vtkInformation instances.