Viskores  1.0
cont/CellLocatorRectilinearGrid.h
Go to the documentation of this file.
1 //============================================================================
2 // The contents of this file are covered by the Viskores license. See
3 // LICENSE.txt for details.
4 //
5 // By contributing to this file, all contributors agree to the Developer
6 // Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7 //============================================================================
8 
9 //============================================================================
10 // Copyright (c) Kitware, Inc.
11 // All rights reserved.
12 // See LICENSE.txt for details.
13 //
14 // This software is distributed WITHOUT ANY WARRANTY; without even
15 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 // PURPOSE. See the above copyright notice for more information.
17 //============================================================================
18 #ifndef viskores_cont_CellLocatorRectilinearGrid_h
19 #define viskores_cont_CellLocatorRectilinearGrid_h
20 
22 
24 
25 namespace viskores
26 {
27 namespace cont
28 {
29 
37 {
40  // Might want to handle cartesian product of both Float32 and Float64.
42  using RectilinearType =
44 
45 public:
46  CellLocatorRectilinearGrid() = default;
47 
48  ~CellLocatorRectilinearGrid() = default;
49 
51 
54  viskores::cont::Token& token) const;
55 
56 private:
60  bool Is3D = true;
61 
62 protected:
63  VISKORES_CONT void Build() override;
64 };
65 
66 } //namespace cont
67 } //namespace viskores
68 
69 #endif //viskores_cont_CellLocatorRectilinearGrid_h
viskores::cont::CellLocatorRectilinearGrid::Bounds
viskores::Bounds Bounds
Definition: cont/CellLocatorRectilinearGrid.h:57
viskores::cont::CellLocatorBase
Base class for all CellLocator classes.
Definition: CellLocatorBase.h:42
CellLocatorBase.h
viskores::Bounds
Represent an axis-aligned 3D bounds in space.
Definition: Bounds.h:37
viskores::cont::CellLocatorRectilinearGrid::PlaneSize
viskores::Id PlaneSize
Definition: cont/CellLocatorRectilinearGrid.h:58
viskores::cont::ArrayHandle
Manages an array-worth of data.
Definition: ArrayHandle.h:313
viskores::exec::CellLocatorRectilinearGrid::LastCell
Structure capturing the location of a cell in the search structure.
Definition: exec/CellLocatorRectilinearGrid.h:67
viskores::Id
viskores::Int64 Id
Base type to use to index arrays.
Definition: Types.h:235
VISKORES_CONT
#define VISKORES_CONT
Definition: ExportMacros.h:65
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
CellLocatorRectilinearGrid.h
viskores::cont::DeviceAdapterId
An object used to specify a device.
Definition: DeviceAdapterTag.h:66
viskores::cont::CellSetStructured
Defines a 1-, 2-, or 3-dimensional structured grid of points.
Definition: CastAndCall.h:40
viskores::cont::CellLocatorRectilinearGrid::RowSize
viskores::Id RowSize
Definition: cont/CellLocatorRectilinearGrid.h:59
viskores::cont::ArrayHandleCartesianProduct
ArrayHandleCartesianProduct is a specialization of ArrayHandle.
Definition: ArrayHandleCartesianProduct.h:345
viskores::exec::CellLocatorRectilinearGrid
Structure for locating cells.
Definition: exec/CellLocatorRectilinearGrid.h:48
viskores::cont::CellLocatorRectilinearGrid
A cell locator optimized for finding cells in a rectilinear grid.
Definition: cont/CellLocatorRectilinearGrid.h:36
viskores::cont::Token
A token to hold the scope of an ArrayHandle or other object.
Definition: Token.h:43