Viskores
1.0
|
A cell locator optimized for finding cells in a rectilinear grid. More...
#include <CellLocatorRectilinearGrid.h>
Public Types | |
using | LastCell = viskores::exec::CellLocatorRectilinearGrid::LastCell |
Public Member Functions | |
CellLocatorRectilinearGrid ()=default | |
~CellLocatorRectilinearGrid ()=default | |
viskores::exec::CellLocatorRectilinearGrid | 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... | |
Protected Member Functions | |
void | Build () override |
![]() | |
void | SetModified () |
bool | GetModified () const |
Private Types | |
using | Structured2DType = viskores::cont::CellSetStructured< 2 > |
using | Structured3DType = viskores::cont::CellSetStructured< 3 > |
using | AxisHandle = viskores::cont::ArrayHandle< viskores::FloatDefault > |
using | RectilinearType = viskores::cont::ArrayHandleCartesianProduct< AxisHandle, AxisHandle, AxisHandle > |
Private Attributes | |
viskores::Bounds | Bounds |
viskores::Id | PlaneSize |
viskores::Id | RowSize |
bool | Is3D = true |
A cell locator optimized for finding cells in a rectilinear grid.
This locator is optimized for structured data that has nonuniform 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::ArrayHandleCartesianProduct
for its data.
|
private |
using viskores::cont::CellLocatorRectilinearGrid::LastCell = viskores::exec::CellLocatorRectilinearGrid::LastCell |
|
private |
|
private |
|
private |
|
default |
|
default |
|
overrideprotectedvirtual |
Implements viskores::cont::CellLocatorBase.
viskores::exec::CellLocatorRectilinearGrid viskores::cont::CellLocatorRectilinearGrid::PrepareForExecution | ( | viskores::cont::DeviceAdapterId | device, |
viskores::cont::Token & | token | ||
) | const |
|
private |
|
private |
|
private |
|
private |