Viskores
1.0
|
A cell locator optimized for finding cells in a uniform grid. More...
#include <CellLocatorUniformGrid.h>
Public Types | |
using | LastCell = viskores::exec::CellLocatorUniformGrid::LastCell |
Public Member Functions | |
viskores::exec::CellLocatorUniformGrid | PrepareForExecution (viskores::cont::DeviceAdapterId device, viskores::cont::Token &token) const |
![]() | |
virtual | ~CellLocatorBase ()=default |
const viskores::cont::UnknownCellSet & | GetCellSet () const |
Specify the CellSet defining the structure of the cells being searched. More... | |
void | SetCellSet (const viskores::cont::UnknownCellSet &cellSet) |
Specify the CellSet defining the structure of the cells being searched. More... | |
const viskores::cont::CoordinateSystem & | GetCoordinates () const |
Specify the CoordinateSystem defining the location of the cells. More... | |
void | SetCoordinates (const viskores::cont::CoordinateSystem &coords) |
Specify the CoordinateSystem defining the location of the cells. More... | |
void | SetCoordinates (const viskores::cont::UnknownArrayHandle &coords) |
Specify the CoordinateSystem defining the location of the cells. More... | |
void | Update () const |
Build the search structure used to look up cells. More... | |
Private Member Functions | |
void | Build () override |
Private Attributes | |
viskores::Id3 | CellDims |
viskores::Id3 | PointDims |
viskores::Vec3f | Origin |
viskores::Vec3f | InvSpacing |
viskores::Vec3f | MaxPoint |
bool | Is3D = true |
Additional Inherited Members | |
![]() | |
void | SetModified () |
bool | GetModified () const |
A cell locator optimized for finding cells in a uniform grid.
This locator is optimized for structured data that has uniform axis-aligned spacing. For this cell locator to work, it has to be given a cell set of type viskores::cont::CellSetStructured
and a coordinate system using a viskores::cont::ArrayHandleUniformPointCoordinates
for its coordinate system. If the data set matches this structure, then this locator will be faster than any others.
using viskores::cont::CellLocatorUniformGrid::LastCell = viskores::exec::CellLocatorUniformGrid::LastCell |
|
overrideprivatevirtual |
Implements viskores::cont::CellLocatorBase.
viskores::exec::CellLocatorUniformGrid viskores::cont::CellLocatorUniformGrid::PrepareForExecution | ( | viskores::cont::DeviceAdapterId | device, |
viskores::cont::Token & | token | ||
) | const |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |