VTK-m  2.1
Slice.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_Slice_h
11 #define vtk_m_filter_contour_Slice_h
12 
15 
16 #include <vtkm/ImplicitFunction.h>
17 
18 namespace vtkm
19 {
20 namespace filter
21 {
22 namespace contour
23 {
24 
32 {
33 public:
39  VTKM_CONT
40  void SetImplicitFunction(const vtkm::ImplicitFunctionGeneral& func) { this->Function = func; }
42  VTKM_CONT
43  const vtkm::ImplicitFunctionGeneral& GetImplicitFunction() const { return this->Function; }
44 
45 private:
46  VTKM_CONT vtkm::cont::DataSet DoExecute(const vtkm::cont::DataSet& input) override;
47 
49 };
50 } // namespace contour
51 } // namespace filter
52 } // namespace vtkm
53 
54 #endif // vtk_m_filter_contour_Slice_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::Slice
Intersect a mesh with an implicit surface.
Definition: Slice.h:31
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_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
ImplicitFunction.h
vtkm::filter::contour::Contour
Generate contours or isosurfaces from a region of space.
Definition: Contour.h:35
vtkm::filter::contour::Slice::GetImplicitFunction
const vtkm::ImplicitFunctionGeneral & GetImplicitFunction() const
Get the implicit function that us used to perform the slicing.
Definition: Slice.h:43
vtkm::filter::contour::Slice::Function
vtkm::ImplicitFunctionGeneral Function
Definition: Slice.h:48
Contour.h
vtkm::filter::contour::Slice::SetImplicitFunction
void SetImplicitFunction(const vtkm::ImplicitFunctionGeneral &func)
Set the implicit function that is used to perform the slicing.
Definition: Slice.h:40
vtkm_filter_contour_export.h