Viskores  1.0
cont/CellLocatorUniformGrid.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_CellLocatorUniformGrid_h
19 #define viskores_cont_CellLocatorUniformGrid_h
20 
22 
24 
25 namespace viskores
26 {
27 namespace cont
28 {
29 
38 class VISKORES_CONT_EXPORT CellLocatorUniformGrid : public viskores::cont::CellLocatorBase
39 {
40 public:
42 
45  viskores::cont::Token& token) const;
46 
47 private:
53  bool Is3D = true;
54 
55  VISKORES_CONT void Build() override;
56 };
57 }
58 } // viskores::cont
59 
60 #endif //viskores_cont_CellLocatorUniformGrid_h
viskores::cont::CellLocatorBase
Base class for all CellLocator classes.
Definition: CellLocatorBase.h:42
viskores::cont::CellLocatorUniformGrid::CellDims
viskores::Id3 CellDims
Definition: cont/CellLocatorUniformGrid.h:48
viskores::exec::CellLocatorUniformGrid
Structure for locating cells.
Definition: exec/CellLocatorUniformGrid.h:47
CellLocatorBase.h
viskores::cont::CellLocatorUniformGrid::MaxPoint
viskores::Vec3f MaxPoint
Definition: cont/CellLocatorUniformGrid.h:52
viskores::cont::CellLocatorUniformGrid::PointDims
viskores::Id3 PointDims
Definition: cont/CellLocatorUniformGrid.h:49
CellLocatorUniformGrid.h
viskores::cont::CellLocatorUniformGrid::Origin
viskores::Vec3f Origin
Definition: cont/CellLocatorUniformGrid.h:50
VISKORES_CONT
#define VISKORES_CONT
Definition: ExportMacros.h:65
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
viskores::cont::CellLocatorUniformGrid
A cell locator optimized for finding cells in a uniform grid.
Definition: cont/CellLocatorUniformGrid.h:38
viskores::cont::CellLocatorUniformGrid::InvSpacing
viskores::Vec3f InvSpacing
Definition: cont/CellLocatorUniformGrid.h:51
viskores::exec::CellLocatorUniformGrid::LastCell
Structure capturing the location of a cell in the search structure.
Definition: exec/CellLocatorUniformGrid.h:80
viskores::cont::DeviceAdapterId
An object used to specify a device.
Definition: DeviceAdapterTag.h:66
viskores::Vec< viskores::Id, 3 >
viskores::cont::Token
A token to hold the scope of an ArrayHandle or other object.
Definition: Token.h:43