VTK-m  2.0
ThreadIndicesBasic3D.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_exec_arg_ThreadIndicesBasic3D_h
11 #define vtk_m_exec_arg_ThreadIndicesBasic3D_h
12 
14 
15 namespace vtkm
16 {
17 namespace exec
18 {
19 namespace arg
20 {
21 
32 {
33 public:
34  VTKM_EXEC
35  ThreadIndicesBasic3D(const vtkm::Id3& threadIndex3D,
36  vtkm::Id threadIndex1D,
37  vtkm::Id inIndex,
38  vtkm::IdComponent visitIndex,
39  vtkm::Id outIndex)
40  : ThreadIndicesBasic(threadIndex1D, inIndex, visitIndex, outIndex)
41  , ThreadIndex3D(threadIndex3D)
42  {
43  }
44 
53  VTKM_EXEC
54  vtkm::Id3 GetInputIndex3D() const { return this->ThreadIndex3D; }
55 
56 private:
58 };
59 }
60 }
61 } // namespace vtkm::exec::arg
62 
63 #endif //vtk_m_exec_arg_ThreadIndicesBasic3D_h
VTKM_EXEC
#define VTKM_EXEC
Definition: ExportMacros.h:51
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
ThreadIndicesBasic.h
vtkm::exec::arg::ThreadIndicesBasic
Basic container for thread indices in a worklet invocation.
Definition: ThreadIndicesBasic.h:35
vtkm::IdComponent
vtkm::Int32 IdComponent
Represents a component ID (index of component in a vector).
Definition: Types.h:168
vtkm::exec::arg::ThreadIndicesBasic3D::ThreadIndicesBasic3D
VTKM_EXEC ThreadIndicesBasic3D(const vtkm::Id3 &threadIndex3D, vtkm::Id threadIndex1D, vtkm::Id inIndex, vtkm::IdComponent visitIndex, vtkm::Id outIndex)
Definition: ThreadIndicesBasic3D.h:35
vtkm::Id
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
vtkm::exec::arg::ThreadIndicesBasic3D
Container for 3D thread indices in a worklet invocation.
Definition: ThreadIndicesBasic3D.h:31
vtkm::exec::arg::ThreadIndicesBasic3D::ThreadIndex3D
vtkm::Id3 ThreadIndex3D
Definition: ThreadIndicesBasic3D.h:57
vtkm::Vec< vtkm::Id, 3 >
vtkm::exec::arg::ThreadIndicesBasic3D::GetInputIndex3D
VTKM_EXEC vtkm::Id3 GetInputIndex3D() const
The 3D index into the input domain.
Definition: ThreadIndicesBasic3D.h:54