VTK-m  2.2
ClipWithImplicitFunction.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 #ifndef vtk_m_filter_contour_ClipWithImplicitFunction_h
11 #define vtk_m_filter_contour_ClipWithImplicitFunction_h
12 
13 #include <vtkm/ImplicitFunction.h>
14 
15 #include <vtkm/filter/Filter.h>
17 
18 namespace vtkm
19 {
20 namespace filter
21 {
22 namespace contour
23 {
31 {
32 public:
38  void SetImplicitFunction(const vtkm::ImplicitFunctionGeneral& func) { this->Function = func; }
39 
40  void SetOffset(vtkm::Float64 offset) { this->Offset = offset; }
41  vtkm::Float64 GetOffset() const { return this->Offset; }
42 
49  void SetInvertClip(bool invert) { this->Invert = invert; }
50 
52  const vtkm::ImplicitFunctionGeneral& GetImplicitFunction() const { return this->Function; }
53 
54 private:
55  vtkm::cont::DataSet DoExecute(const vtkm::cont::DataSet& input) override;
56 
59  bool Invert = false;
60 };
61 } // namespace contour
62 } // namespace filter
63 } // namespace vtkm
64 
65 #endif // vtk_m_filter_contour_ClipWithImplicitFunction_h
vtkm::ImplicitFunctionGeneral
Implicit function that can switch among known implicit function types.
Definition: ImplicitFunction.h:965
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::filter::contour::ClipWithImplicitFunction::Function
vtkm::ImplicitFunctionGeneral Function
Definition: ClipWithImplicitFunction.h:57
vtkm::filter::contour::ClipWithImplicitFunction::GetOffset
vtkm::Float64 GetOffset() const
Definition: ClipWithImplicitFunction.h:41
vtkm::cont::DataSet
Contains and manages the geometric data structures that VTK-m operates on.
Definition: DataSet.h:57
vtkm::filter::contour::ClipWithImplicitFunction
Clip a dataset using an implicit function.
Definition: ClipWithImplicitFunction.h:30
vtkm::filter::contour::ClipWithImplicitFunction::GetImplicitFunction
const vtkm::ImplicitFunctionGeneral & GetImplicitFunction() const
Specifies the implicit function to be used to perform the clip operation.
Definition: ClipWithImplicitFunction.h:52
vtkm::filter::contour::ClipWithImplicitFunction::SetImplicitFunction
void SetImplicitFunction(const vtkm::ImplicitFunctionGeneral &func)
Specifies the implicit function to be used to perform the clip operation.
Definition: ClipWithImplicitFunction.h:38
VTKM_FILTER_CONTOUR_EXPORT
#define VTKM_FILTER_CONTOUR_EXPORT
Definition: vtkm_filter_contour_export.h:44
vtkm::filter::Filter
Base class for all filters.
Definition: Filter.h:163
vtkm::filter::contour::ClipWithImplicitFunction::SetOffset
void SetOffset(vtkm::Float64 offset)
Definition: ClipWithImplicitFunction.h:40
ImplicitFunction.h
vtkm::filter::contour::ClipWithImplicitFunction::SetInvertClip
void SetInvertClip(bool invert)
Specifies whether the result of the clip filter should be inverted.
Definition: ClipWithImplicitFunction.h:49
vtkm::Float64
double Float64
Base type to use for 64-bit floating-point numbers.
Definition: Types.h:161
Offset
vtkm::Float32 Offset
Definition: Wireframer.h:393
vtkm_filter_contour_export.h
Filter.h