Viskores  1.0
Slice.h
Go to the documentation of this file.
1 //============================================================================
2 // The contents of this file are covered by the Viskores license. See
3 // LICENSE.txt for details.
4 //
5 // By contributing to this file, all contributors agree to the Developer
6 // Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7 //============================================================================
8 
9 //============================================================================
10 // Copyright (c) Kitware, Inc.
11 // All rights reserved.
12 // See LICENSE.txt for details.
13 //
14 // This software is distributed WITHOUT ANY WARRANTY; without even
15 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 // PURPOSE. See the above copyright notice for more information.
17 //============================================================================
18 #ifndef viskores_filter_contour_Slice_h
19 #define viskores_filter_contour_Slice_h
20 
23 
25 
26 namespace viskores
27 {
28 namespace filter
29 {
30 namespace contour
31 {
32 
39 class VISKORES_FILTER_CONTOUR_EXPORT Slice : public viskores::filter::contour::Contour
40 {
41 public:
48  void SetImplicitFunction(const viskores::ImplicitFunctionGeneral& func) { this->Function = func; }
51  const viskores::ImplicitFunctionGeneral& GetImplicitFunction() const { return this->Function; }
52 
53 private:
54  VISKORES_CONT viskores::cont::DataSet DoExecute(const viskores::cont::DataSet& input) override;
55 
57 };
58 } // namespace contour
59 } // namespace filter
60 } // namespace viskores
61 
62 #endif // viskores_filter_contour_Slice_h
viskores::ImplicitFunctionGeneral
Implicit function that can switch among known implicit function types.
Definition: ImplicitFunction.h:985
viskores::cont::DataSet
Contains and manages the geometric data structures that Viskores operates on.
Definition: DataSet.h:66
viskores::filter::contour::Slice::SetImplicitFunction
void SetImplicitFunction(const viskores::ImplicitFunctionGeneral &func)
Set the implicit function that is used to perform the slicing.
Definition: Slice.h:48
viskores::filter::contour::Slice::GetImplicitFunction
const viskores::ImplicitFunctionGeneral & GetImplicitFunction() const
Get the implicit function that us used to perform the slicing.
Definition: Slice.h:51
VISKORES_CONT
#define VISKORES_CONT
Definition: ExportMacros.h:65
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
viskores_filter_contour_export.h
viskores::filter::contour::Slice::Function
viskores::ImplicitFunctionGeneral Function
Definition: Slice.h:56
ImplicitFunction.h
viskores::filter::contour::Slice
Intersect a mesh with an implicit surface.
Definition: Slice.h:39
Contour.h
viskores::filter::contour::Contour
Generate contours or isosurfaces from a region of space.
Definition: Contour.h:43