Viskores  1.0
MapFieldPermutation.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_MapFieldPermutation_h
20 #define viskores_filter_MapFieldPermutation_h
21 
24 #include <viskores/cont/DataSet.h>
25 #include <viskores/cont/Field.h>
26 
28 
29 namespace viskores
30 {
31 namespace filter
32 {
33 
56 VISKORES_FILTER_CORE_EXPORT VISKORES_CONT bool MapFieldPermutation(
57  const viskores::cont::Field& inputField,
59  viskores::cont::Field& outputField,
60  viskores::Float64 invalidValue = viskores::Nan<viskores::Float64>());
61 
62 VISKORES_FILTER_CORE_EXPORT VISKORES_CONT bool MapFieldPermutation(
63  const viskores::cont::CoordinateSystem& inputCoords,
66  viskores::Float64 invalidValue = viskores::Nan<viskores::Float64>());
67 
90 VISKORES_FILTER_CORE_EXPORT VISKORES_CONT bool MapFieldPermutation(
91  const viskores::cont::Field& inputField,
93  viskores::cont::DataSet& outputData,
94  viskores::Float64 invalidValue = viskores::Nan<viskores::Float64>());
95 }
96 } // namespace viskores::filter
97 
98 #endif //viskores_filter_MapFieldPermutation_h
ArrayHandle.h
viskores::cont::DataSet
Contains and manages the geometric data structures that Viskores operates on.
Definition: DataSet.h:66
viskores::cont::ArrayHandle< viskores::Id >
viskores::cont::CoordinateSystem
Manages a coordinate system for a DataSet.
Definition: CoordinateSystem.h:38
viskores_filter_core_export.h
CoordinateSystem.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::filter::MapFieldPermutation
bool MapFieldPermutation(const viskores::cont::Field &inputField, const viskores::cont::ArrayHandle< viskores::Id > &permutation, viskores::cont::Field &outputField, viskores::Float64 invalidValue=viskores::Nan< viskores::Float64 >())
Maps a field by permuting it by a given index array.
viskores::Float64
double Float64
Base type to use for 64-bit floating-point numbers.
Definition: Types.h:169
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