VTK-m  2.0
ClipWithField.h
Go to the documentation of this file.
1 //============================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //============================================================================
10 
11 #ifndef vtk_m_filter_contour_ClipWithField_h
12 #define vtk_m_filter_contour_ClipWithField_h
13 
15 #include <vtkm/filter/contour/vtkm_filter_contour_export.h>
16 
17 namespace vtkm
18 {
19 namespace filter
20 {
21 namespace contour
22 {
29 class VTKM_FILTER_CONTOUR_EXPORT ClipWithField : public vtkm::filter::FilterField
30 {
31 public:
32  VTKM_CONT
33  void SetClipValue(vtkm::Float64 value) { this->ClipValue = value; }
34 
35  VTKM_CONT
36  void SetInvertClip(bool invert) { this->Invert = invert; }
37 
38  VTKM_CONT
39  vtkm::Float64 GetClipValue() const { return this->ClipValue; }
40 
41 private:
42  vtkm::cont::DataSet DoExecute(const vtkm::cont::DataSet& input) override;
43 
44  vtkm::Float64 ClipValue = 0;
45  bool Invert = false;
46 };
47 } // namespace contour
48 } // namespace filter
49 } // namespace vtkm
50 
51 #endif // vtk_m_filter_contour_ClipWithField_h
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::cont::DataSet
Definition: DataSet.h:34
FilterField.h
vtkm::filter::FilterField
Definition: FilterField.h:21
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::filter::contour::ClipWithField::SetClipValue
VTKM_CONT void SetClipValue(vtkm::Float64 value)
Definition: ClipWithField.h:33
vtkm::filter::contour::ClipWithField
Clip a dataset using a field.
Definition: ClipWithField.h:29
vtkm::Float64
double Float64
Definition: Types.h:155
vtkm::filter::contour::ClipWithField::SetInvertClip
VTKM_CONT void SetInvertClip(bool invert)
Definition: ClipWithField.h:36
vtkm::filter::contour::ClipWithField::GetClipValue
VTKM_CONT vtkm::Float64 GetClipValue() const
Definition: ClipWithField.h:39