Viskores  1.0
MapFieldMergeAverage.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 
19 #ifndef viskores_filter_MapFieldMergeAverage_h
20 #define viskores_filter_MapFieldMergeAverage_h
21 
23 #include <viskores/cont/DataSet.h>
24 #include <viskores/cont/Field.h>
25 
26 #include <viskores/worklet/Keys.h>
27 
29 
30 namespace viskores
31 {
32 namespace filter
33 {
34 
52 VISKORES_FILTER_CORE_EXPORT VISKORES_CONT bool MapFieldMergeAverage(
53  const viskores::cont::Field& inputField,
54  const viskores::worklet::internal::KeysBase& keys,
55  viskores::cont::Field& outputField);
56 
74 VISKORES_FILTER_CORE_EXPORT VISKORES_CONT bool MapFieldMergeAverage(
75  const viskores::cont::Field& inputField,
76  const viskores::worklet::internal::KeysBase& keys,
77  viskores::cont::DataSet& outputData);
78 }
79 } // namespace viskores::filter
80 
81 #endif //viskores_filter_MapFieldMergeAverage_h
ArrayHandle.h
viskores::cont::DataSet
Contains and manages the geometric data structures that Viskores operates on.
Definition: DataSet.h:66
viskores::filter::MapFieldMergeAverage
bool MapFieldMergeAverage(const viskores::cont::Field &inputField, const viskores::worklet::internal::KeysBase &keys, viskores::cont::Field &outputField)
Maps a field by merging entries based on a keys object.
Keys.h
viskores_filter_core_export.h
VISKORES_CONT
#define VISKORES_CONT
Definition: ExportMacros.h:65
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
Field.h
viskores::cont::Field
A Field encapsulates an array on some piece of the mesh, such as the points, a cell set,...
Definition: Field.h:39
DataSet.h