VTK-m  2.0
MaskNone.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 #ifndef vtk_m_worklet_MaskNone_h
11 #define vtk_m_worklet_MaskNone_h
12 
15 
16 namespace vtkm
17 {
18 namespace worklet
19 {
20 
27 struct MaskNone : public internal::MaskBase
28 {
29  template <typename RangeType>
30  VTKM_CONT RangeType GetThreadRange(RangeType outputRange) const
31  {
32  return outputRange;
33  }
34 
36 
38  {
39  return vtkm::cont::ArrayHandleIndex(outputRange);
40  }
41 
43  {
44  return this->GetThreadToOutputMap(outputRange[0] * outputRange[1] * outputRange[2]);
45  }
46 };
47 }
48 } // namespace vtkm::worklet
49 
50 #endif //vtk_m_worklet_MaskNone_h
MaskBase.h
vtkm::worklet::MaskNone::GetThreadToOutputMap
VTKM_CONT ThreadToOutputMapType GetThreadToOutputMap(const vtkm::Id3 &outputRange) const
Definition: MaskNone.h:42
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::worklet::MaskNone::GetThreadToOutputMap
VTKM_CONT ThreadToOutputMapType GetThreadToOutputMap(vtkm::Id outputRange) const
Definition: MaskNone.h:37
vtkm::worklet::MaskNone::GetThreadRange
VTKM_CONT RangeType GetThreadRange(RangeType outputRange) const
Definition: MaskNone.h:30
vtkm::Id
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
ArrayHandleIndex.h
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::Vec< vtkm::Id, 3 >
vtkm::worklet::MaskNone
Default mask object that does not suppress anything.
Definition: MaskNone.h:27
vtkm::cont::ArrayHandleIndex
An implicit array handle containing the its own indices.
Definition: ArrayHandleIndex.h:54