VTK-m  2.2
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 
37 
39 {
40  template <typename CellSetCont>
41  using CellSetContToExec =
42  typename CellSetCont::template ExecConnectivityType<vtkm::TopologyElementTagCell,
44 
45 public:
47 
49  using CellLocatorExecList =
51 
53  using LastCell = typename ExecObjType::LastCell;
54 
56  void SetDims(const vtkm::Id3& dims) { this->UniformDims = dims; }
57  vtkm::Id3 GetDims() const { return this->UniformDims; }
58 
59  void PrintSummary(std::ostream& out) const;
60 
61 public:
62  ExecObjType PrepareForExecution(vtkm::cont::DeviceAdapterId device,
63  vtkm::cont::Token& token) const;
64 
65 private:
66  VTKM_CONT void Build() override;
67 
73 
76 
78 
79  struct MakeExecObject;
80 };
81 
82 }
83 } // vtkm::cont
84 
85 #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:53
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::CellLocatorUniformBins
CellLocatorUniformBins()
Definition: cont/CellLocatorUniformBins.h:55
vtkm::cont::CellLocatorUniformBins::MaxPoint
vtkm::Vec3f MaxPoint
Definition: cont/CellLocatorUniformBins.h:69
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
Definition: cont/CellLocatorUniformBins.h:57
vtkm::cont::CellLocatorUniformBins
A locator that uses a uniform grid.
Definition: cont/CellLocatorUniformBins.h:38
vtkm::cont::CellLocatorUniformBins::SupportedCellSets
::vtkm::cont::internal::CellSetList SupportedCellSets
Definition: cont/CellLocatorUniformBins.h:46
vtkm::cont::CellLocatorUniformBins::SetDims
void SetDims(const vtkm::Id3 &dims)
Definition: cont/CellLocatorUniformBins.h:56
vtkm::cont::CellLocatorUniformBins::InvSpacing
vtkm::Vec3f InvSpacing
Definition: cont/CellLocatorUniformBins.h:68
CellSetList.h
vtkm::cont::CellLocatorUniformBins::CellSetContToExec
typename CellSetCont::template ExecConnectivityType< vtkm::TopologyElementTagCell, vtkm::TopologyElementTagPoint > CellSetContToExec
Definition: cont/CellLocatorUniformBins.h:43
vtkm::cont::CellLocatorUniformBins::MaxCellIds
vtkm::Id3 MaxCellIds
Definition: cont/CellLocatorUniformBins.h:72
vtkm::cont::CellLocatorUniformBins::CellExecObjectList
vtkm::ListTransform< SupportedCellSets, CellSetContToExec > CellExecObjectList
Definition: cont/CellLocatorUniformBins.h:48
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:70
vtkm::cont::CellLocatorUniformBins::ExecObjType
vtkm::ListApply< CellLocatorExecList, vtkm::exec::CellLocatorMultiplexer > ExecObjType
Definition: cont/CellLocatorUniformBins.h:52
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:35
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:77
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:71
vtkm::cont::CellLocatorUniformBins::CellLocatorExecList
vtkm::ListTransform< CellExecObjectList, vtkm::exec::CellLocatorUniformBins > CellLocatorExecList
Definition: cont/CellLocatorUniformBins.h:50
ArrayHandleGroupVecVariable.h
vtkm::TopologyElementTagCell
A tag used to identify the cell elements in a topology.
Definition: TopologyElementTag.h:24