VTK-m  2.1
MapFieldMergeAverage.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_MapFieldMergeAverage_h
12 #define vtk_m_filter_MapFieldMergeAverage_h
13 
14 #include <vtkm/cont/ArrayHandle.h>
15 #include <vtkm/cont/DataSet.h>
16 #include <vtkm/cont/Field.h>
17 
18 #include <vtkm/worklet/Keys.h>
19 
21 
22 namespace vtkm
23 {
24 namespace filter
25 {
26 
45  const vtkm::cont::Field& inputField,
46  const vtkm::worklet::internal::KeysBase& keys,
47  vtkm::cont::Field& outputField);
48 
67  const vtkm::cont::Field& inputField,
68  const vtkm::worklet::internal::KeysBase& keys,
69  vtkm::cont::DataSet& outputData);
70 }
71 } // namespace vtkm::filter
72 
73 #endif //vtk_m_filter_MapFieldMergeAverage_h
vtkm_filter_core_export.h
ArrayHandle.h
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
Keys.h
vtkm::cont::DataSet
Contains and manages the geometric data structures that VTK-m operates on.
Definition: DataSet.h:57
vtkm::cont::Field
A Field encapsulates an array on some piece of the mesh, such as the points, a cell set,...
Definition: Field.h:31
VTKM_FILTER_CORE_EXPORT
#define VTKM_FILTER_CORE_EXPORT
Definition: vtkm_filter_core_export.h:44
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
Field.h
vtkm::filter::MapFieldMergeAverage
bool MapFieldMergeAverage(const vtkm::cont::Field &inputField, const vtkm::worklet::internal::KeysBase &keys, vtkm::cont::Field &outputField)
Maps a field by merging entries based on a keys object.
DataSet.h