VTK-m  2.0
cont/CellLocatorRectilinearGrid.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 vtkm_cont_CellLocatorRectilinearGrid_h
11 #define vtkm_cont_CellLocatorRectilinearGrid_h
12 
14 
16 
17 namespace vtkm
18 {
19 namespace cont
20 {
21 
22 class VTKM_CONT_EXPORT CellLocatorRectilinearGrid
23  : public vtkm::cont::internal::CellLocatorBase<CellLocatorRectilinearGrid>
24 {
25  using Superclass = vtkm::cont::internal::CellLocatorBase<CellLocatorRectilinearGrid>;
26 
29  // Might want to handle cartesian product of both Float32 and Float64.
31  using RectilinearType =
33 
34 public:
35  CellLocatorRectilinearGrid() = default;
36 
37  ~CellLocatorRectilinearGrid() = default;
38 
40 
43  vtkm::cont::Token& token) const;
44 
45 private:
49  bool Is3D = true;
50 
51  friend Superclass;
52  VTKM_CONT void Build();
53 };
54 
55 } //namespace cont
56 } //namespace vtkm
57 
58 #endif //vtkm_cont_CellLocatorRectilinearGrid_h
vtkm::cont::ArrayHandle< vtkm::FloatDefault >
vtkm::cont::CellLocatorRectilinearGrid
Definition: cont/CellLocatorRectilinearGrid.h:22
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
CellLocatorBase.h
vtkm::cont::CellLocatorRectilinearGrid::RowSize
vtkm::Id RowSize
Definition: cont/CellLocatorRectilinearGrid.h:48
vtkm::cont::CellSetStructured
Definition: CastAndCall.h:32
vtkm::cont::ArrayHandleCartesianProduct
ArrayHandleCartesianProduct is a specialization of ArrayHandle.
Definition: ArrayHandleCartesianProduct.h:326
vtkm::Id
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
vtkm::cont::Token
A token to hold the scope of an ArrayHandle or other object.
Definition: Token.h:35
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::Bounds
Represent an axis-aligned 3D bounds in space.
Definition: Bounds.h:29
CellLocatorRectilinearGrid.h
vtkm::cont::DeviceAdapterId
Definition: DeviceAdapterTag.h:52
vtkm::cont::CellLocatorRectilinearGrid::Superclass
vtkm::cont::internal::CellLocatorBase< CellLocatorRectilinearGrid > Superclass
Definition: cont/CellLocatorRectilinearGrid.h:25
vtkm::cont::CellLocatorRectilinearGrid::PlaneSize
vtkm::Id PlaneSize
Definition: cont/CellLocatorRectilinearGrid.h:47
vtkm::exec::CellLocatorRectilinearGrid
Definition: exec/CellLocatorRectilinearGrid.h:31
vtkm::cont::CellLocatorRectilinearGrid::Superclass
friend Superclass
Definition: cont/CellLocatorRectilinearGrid.h:51
vtkm::exec::CellLocatorRectilinearGrid::LastCell
Definition: exec/CellLocatorRectilinearGrid.h:45
vtkm::cont::CellLocatorRectilinearGrid::Bounds
vtkm::Bounds Bounds
Definition: cont/CellLocatorRectilinearGrid.h:46