VTK-m  2.3
cont/CellLocatorUniformBins.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_cont_CellLocatorUniformBins_h
11 #define vtk_m_cont_CellLocatorUniformBins_h
12 
13 #include <vtkm/cont/ArrayHandle.h>
14 #include <vtkm/cont/CellSetList.h>
15 
18 
21 
22 
23 namespace vtkm
24 {
25 namespace cont
26 {
27 
38 {
39  template <typename CellSetCont>
40  using CellSetContToExec =
41  typename CellSetCont::template ExecConnectivityType<vtkm::TopologyElementTagCell,
43 
44 public:
46 
48  using CellLocatorExecList =
50 
52  using LastCell = typename ExecObjType::LastCell;
53 
54  CellLocatorUniformBins() = default;
55 
62  VTKM_CONT void SetDims(const vtkm::Id3& dims) { this->UniformDims = dims; }
64  VTKM_CONT vtkm::Id3 GetDims() const { return this->UniformDims; }
65 
67  void PrintSummary(std::ostream& out) const;
68 
69 public:
70  ExecObjType PrepareForExecution(vtkm::cont::DeviceAdapterId device,
71  vtkm::cont::Token& token) const;
72 
73 private:
74  VTKM_CONT void Build() override;
75 
81 
84 
86 
87  struct MakeExecObject;
88 };
89 
90 }
91 } // vtkm::cont
92 
93 #endif // vtk_m_cont_CellLocatorUniformBins_h
vtkm::TopologyElementTagPoint
A tag used to identify the point elements in a topology.
Definition: TopologyElementTag.h:34
vtkm::cont::CellLocatorUniformBins::LastCell
typename ExecObjType::LastCell LastCell
Definition: cont/CellLocatorUniformBins.h:52
vtkm::cont::ArrayHandle< vtkm::Id >
ArrayHandle.h
CellLocatorMultiplexer.h
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
CellLocatorBase.h
vtkm::cont::CellLocatorUniformBins::MaxPoint
vtkm::Vec3f MaxPoint
Definition: cont/CellLocatorUniformBins.h:77
vtkm::cont::ArrayHandleGroupVecVariable< CellIdArrayType, CellIdOffsetArrayType >
vtkm::ListApply
typename detail::ListApplyImpl< List, Target >::type ListApply
Applies the list of types to a template.
Definition: List.h:138
vtkm::cont::CellLocatorUniformBins::GetDims
vtkm::Id3 GetDims() const
Specify the dimensions of the grid used to establish bins.
Definition: cont/CellLocatorUniformBins.h:64
vtkm::cont::CellLocatorUniformBins
A locator that uses a uniform grid.
Definition: cont/CellLocatorUniformBins.h:37
vtkm::cont::CellLocatorUniformBins::SupportedCellSets
::vtkm::cont::internal::CellSetList SupportedCellSets
Definition: cont/CellLocatorUniformBins.h:45
vtkm::cont::CellLocatorUniformBins::SetDims
void SetDims(const vtkm::Id3 &dims)
Specify the dimensions of the grid used to establish bins.
Definition: cont/CellLocatorUniformBins.h:62
vtkm::cont::CellLocatorUniformBins::InvSpacing
vtkm::Vec3f InvSpacing
Definition: cont/CellLocatorUniformBins.h:76
CellSetList.h
vtkm::cont::CellLocatorUniformBins::CellSetContToExec
typename CellSetCont::template ExecConnectivityType< vtkm::TopologyElementTagCell, vtkm::TopologyElementTagPoint > CellSetContToExec
Definition: cont/CellLocatorUniformBins.h:42
vtkm::cont::CellLocatorUniformBins::MaxCellIds
vtkm::Id3 MaxCellIds
Definition: cont/CellLocatorUniformBins.h:80
vtkm::cont::CellLocatorUniformBins::CellExecObjectList
vtkm::ListTransform< SupportedCellSets, CellSetContToExec > CellExecObjectList
Definition: cont/CellLocatorUniformBins.h:47
vtkm::cont::Token
A token to hold the scope of an ArrayHandle or other object.
Definition: Token.h:35
vtkm::cont::CellLocatorUniformBins::Origin
vtkm::Vec3f Origin
Definition: cont/CellLocatorUniformBins.h:78
vtkm::cont::CellLocatorUniformBins::ExecObjType
vtkm::ListApply< CellLocatorExecList, vtkm::exec::CellLocatorMultiplexer > ExecObjType
Definition: cont/CellLocatorUniformBins.h:51
VTKM_DEFAULT_CELL_SET_LIST
#define VTKM_DEFAULT_CELL_SET_LIST
Definition: DefaultTypes.h:77
vtkm::ListTransform
typename detail::ListTransformImpl< List, Transform >::type ListTransform
Constructs a list containing all types in a source list applied to a transform template.
Definition: List.h:598
vtkm::cont::CellLocatorBase
Base class for all CellLocator classes.
Definition: CellLocatorBase.h:34
VTKM_CONT_EXPORT
#define VTKM_CONT_EXPORT
Definition: vtkm_cont_export.h:44
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
CellLocatorUniformBins.h
vtkm::cont::CellLocatorUniformBins::CellIds
vtkm::cont::ArrayHandleGroupVecVariable< CellIdArrayType, CellIdOffsetArrayType > CellIds
Definition: cont/CellLocatorUniformBins.h:85
vtkm::cont::DeviceAdapterId
An object used to specify a device.
Definition: DeviceAdapterTag.h:58
vtkm::Vec< vtkm::Id, 3 >
vtkm::cont::CellLocatorUniformBins::UniformDims
vtkm::Id3 UniformDims
Definition: cont/CellLocatorUniformBins.h:79
vtkm::cont::CellLocatorUniformBins::CellLocatorExecList
vtkm::ListTransform< CellExecObjectList, vtkm::exec::CellLocatorUniformBins > CellLocatorExecList
Definition: cont/CellLocatorUniformBins.h:49
ArrayHandleGroupVecVariable.h
vtkm::TopologyElementTagCell
A tag used to identify the cell elements in a topology.
Definition: TopologyElementTag.h:24