VTK-m  2.1
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>
16 #include <vtkm/cont/DataSet.h>
17 #include <vtkm/cont/Field.h>
18 
20 
21 namespace vtkm
22 {
23 namespace filter
24 {
25 
49  const vtkm::cont::Field& inputField,
50  const vtkm::cont::ArrayHandle<vtkm::Id>& permutation,
51  vtkm::cont::Field& outputField,
52  vtkm::Float64 invalidValue = vtkm::Nan<vtkm::Float64>());
53 
55  const vtkm::cont::CoordinateSystem& inputCoords,
56  const vtkm::cont::ArrayHandle<vtkm::Id>& permutation,
57  vtkm::cont::CoordinateSystem& outputCoords,
58  vtkm::Float64 invalidValue = vtkm::Nan<vtkm::Float64>());
59 
83  const vtkm::cont::Field& inputField,
84  const vtkm::cont::ArrayHandle<vtkm::Id>& permutation,
85  vtkm::cont::DataSet& outputData,
86  vtkm::Float64 invalidValue = vtkm::Nan<vtkm::Float64>());
87 }
88 } // namespace vtkm::filter
89 
90 #endif //vtk_m_filter_MapFieldPermutation_h
vtkm_filter_core_export.h
vtkm::cont::ArrayHandle< vtkm::Id >
ArrayHandle.h
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::filter::MapFieldPermutation
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.
vtkm::cont::DataSet
Contains and manages the geometric data structures that VTK-m operates on.
Definition: DataSet.h:57
CoordinateSystem.h
vtkm::cont::CoordinateSystem
Manages a coordinate system for a DataSet.
Definition: CoordinateSystem.h:30
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::Float64
double Float64
Base type to use for 64-bit floating-point numbers.
Definition: Types.h:161
DataSet.h