VTK-m  2.2
SliceMultiple.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_Multi_h
11 #define vtk_m_filter_contour_Slice_Multi_h
12 
15 
16 #include <vtkm/ImplicitFunction.h>
17 
18 namespace vtkm
19 {
20 namespace filter
21 {
22 namespace contour
23 {
27 {
28 public:
31  VTKM_CONT
33  {
34  FunctionList.push_back(func);
35  }
36  VTKM_CONT
38  {
39  VTKM_ASSERT(id < static_cast<vtkm::Id>(FunctionList.size()));
40  return FunctionList[id];
41  }
42 
43 private:
44  VTKM_CONT vtkm::cont::DataSet DoExecute(const vtkm::cont::DataSet& input) override;
45 
46  std::vector<vtkm::ImplicitFunctionGeneral> FunctionList;
47 };
48 } // namespace contour
49 } // namespace filter
50 } // namespace vtkm
51 
52 #endif // vtk_m_filter_contour_Slice_Multi_h
vtkm::filter::contour::SliceMultiple::AddImplicitFunction
void AddImplicitFunction(const vtkm::ImplicitFunctionGeneral &func)
Set/Get the implicit function that is used to perform the slicing.
Definition: SliceMultiple.h:32
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_ASSERT
#define VTKM_ASSERT(condition)
Definition: Assert.h:43
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::SliceMultiple
This filter can accept multiple implicit functions used by the slice filter.
Definition: SliceMultiple.h:26
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::Id
vtkm::Int64 Id
Base type to use to index arrays.
Definition: Types.h:227
vtkm::filter::contour::SliceMultiple::GetImplicitFunction
const vtkm::ImplicitFunctionGeneral & GetImplicitFunction(vtkm::Id id) const
Definition: SliceMultiple.h:37
ImplicitFunction.h
vtkm::filter::contour::Contour
Generate contours or isosurfaces from a region of space.
Definition: Contour.h:35
Contour.h
vtkm_filter_contour_export.h
vtkm::filter::contour::SliceMultiple::FunctionList
std::vector< vtkm::ImplicitFunctionGeneral > FunctionList
Definition: SliceMultiple.h:46