VTK-m  2.1
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 
14 #include <vtkm/filter/Filter.h>
16 
17 namespace vtkm
18 {
19 namespace filter
20 {
21 namespace contour
22 {
32 {
33 public:
38  VTKM_CONT void SetClipValue(vtkm::Float64 value) { this->ClipValue = value; }
39 
45  VTKM_CONT void SetInvertClip(bool invert) { this->Invert = invert; }
46 
48  VTKM_CONT vtkm::Float64 GetClipValue() const { return this->ClipValue; }
49 
51  VTKM_CONT bool GetInvertClip() const { return this->Invert; }
52 
53 private:
54  vtkm::cont::DataSet DoExecute(const vtkm::cont::DataSet& input) override;
55 
56  vtkm::Float64 ClipValue = 0;
57  bool Invert = false;
58 };
59 } // namespace contour
60 } // namespace filter
61 } // namespace vtkm
62 
63 #endif // vtk_m_filter_contour_ClipWithField_h
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::filter::contour::ClipWithField::SetClipValue
void SetClipValue(vtkm::Float64 value)
Specifies the field value for the clip operation.
Definition: ClipWithField.h:38
vtkm::cont::DataSet
Contains and manages the geometric data structures that VTK-m operates on.
Definition: DataSet.h:57
VTKM_FILTER_CONTOUR_EXPORT
#define VTKM_FILTER_CONTOUR_EXPORT
Definition: vtkm_filter_contour_export.h:44
vtkm::filter::contour::ClipWithField::GetInvertClip
bool GetInvertClip() const
Specifies if the result for the clip filter should be inverted.
Definition: ClipWithField.h:51
vtkm::filter::Filter
Base class for all filters.
Definition: Filter.h:163
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::filter::contour::ClipWithField
Clip a dataset using a field.
Definition: ClipWithField.h:31
vtkm::filter::contour::ClipWithField::GetClipValue
vtkm::Float64 GetClipValue() const
Specifies the field value for the clip operation.
Definition: ClipWithField.h:48
vtkm::Float64
double Float64
Base type to use for 64-bit floating-point numbers.
Definition: Types.h:161
vtkm_filter_contour_export.h
vtkm::filter::contour::ClipWithField::SetInvertClip
void SetInvertClip(bool invert)
Specifies if the result for the clip filter should be inverted.
Definition: ClipWithField.h:45
Filter.h