VTK  9.3.0
vtkmFilterOverrides.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
3 #ifndef vtkmFilterOverrides_h
4 #define vtkmFilterOverrides_h
5 
6 #include "vtkAcceleratorsVTKmFiltersModule.h" //required for correct implementation
7 
10 VTK_ABI_NAMESPACE_BEGIN
11 class VTKACCELERATORSVTKMFILTERS_EXPORT vtkmFilterOverrides
12 {
13 public:
15 
21  static void SetEnabled(bool value);
22  static bool GetEnabled();
23  static void EnabledOn() { vtkmFilterOverrides::SetEnabled(true); }
24  static void EnabledOff() { vtkmFilterOverrides::SetEnabled(false); }
26 };
27 
28 VTK_ABI_NAMESPACE_END
29 #endif // vtkmFilterOverrides_h
30 // VTK-HeaderTest-Exclude: vtkmFilterOverrides.h
A class with static methods to turn vtkm filter overrides on/off at runtime.
static bool GetEnabled()
Runtime enable/disable for VTK-m filter overrides using the object factory.
static void EnabledOff()
Runtime enable/disable for VTK-m filter overrides using the object factory.
static void EnabledOn()
Runtime enable/disable for VTK-m filter overrides using the object factory.
static void SetEnabled(bool value)
Runtime enable/disable for VTK-m filter overrides using the object factory.
@ value
Definition: vtkX3D.h:220