VTK-m  2.0
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 
20 #include <vtkm/filter/vtkm_filter_core_export.h>
21 
22 namespace vtkm
23 {
24 namespace filter
25 {
26 
44 VTKM_FILTER_CORE_EXPORT VTKM_CONT bool MapFieldMergeAverage(
45  const vtkm::cont::Field& inputField,
46  const vtkm::worklet::internal::KeysBase& keys,
47  vtkm::cont::Field& outputField);
48 
66 VTKM_FILTER_CORE_EXPORT VTKM_CONT bool MapFieldMergeAverage(
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
ArrayHandle.h
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::filter::MapFieldMergeAverage
VTKM_FILTER_CORE_EXPORT VTKM_CONT 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.
Keys.h
vtkm::cont::DataSet
Definition: DataSet.h:34
vtkm::cont::Field
A Field encapsulates an array on some piece of the mesh, such as the points, a cell set,...
Definition: cont/Field.h:31
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
Field.h
DataSet.h