VTK-m  2.0
MapFieldPermutation.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_MapFieldPermutation_h
12 #define vtk_m_filter_MapFieldPermutation_h
13 
14 #include <vtkm/cont/ArrayHandle.h>
15 #include <vtkm/cont/DataSet.h>
16 #include <vtkm/cont/Field.h>
17 
18 #include <vtkm/filter/vtkm_filter_core_export.h>
19 
20 namespace vtkm
21 {
22 namespace filter
23 {
24 
46 VTKM_FILTER_CORE_EXPORT VTKM_CONT bool MapFieldPermutation(
47  const vtkm::cont::Field& inputField,
48  const vtkm::cont::ArrayHandle<vtkm::Id>& permutation,
49  vtkm::cont::Field& outputField,
50  vtkm::Float64 invalidValue = vtkm::Nan<vtkm::Float64>());
51 
74 VTKM_FILTER_CORE_EXPORT VTKM_CONT bool MapFieldPermutation(
75  const vtkm::cont::Field& inputField,
76  const vtkm::cont::ArrayHandle<vtkm::Id>& permutation,
77  vtkm::cont::DataSet& outputData,
78  vtkm::Float64 invalidValue = vtkm::Nan<vtkm::Float64>());
79 }
80 } // namespace vtkm::filter
81 
82 #endif //vtk_m_filter_MapFieldPermutation_h
vtkm::cont::ArrayHandle< vtkm::Id >
ArrayHandle.h
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
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
vtkm::filter::MapFieldPermutation
VTKM_FILTER_CORE_EXPORT VTKM_CONT bool MapFieldPermutation(const vtkm::cont::Field &inputField, const vtkm::cont::ArrayHandle< vtkm::Id > &permutation, vtkm::cont::Field &outputField, vtkm::Float64 invalidValue=vtkm::Nan< vtkm::Float64 >())
Maps a field by permuting it by a given index array.
Field.h
vtkm::Float64
double Float64
Definition: Types.h:155
DataSet.h