Go to the documentation of this file.
18 #ifndef viskores_exec_BoundaryState_h
19 #define viskores_exec_BoundaryState_h
142 if (this->
IJK[component] >= radius)
144 minIndices[component] = -radius;
175 maxIndices[component] = radius;
216 return this->
IJK + neighbor;
299 #endif //viskores_exec_BoundaryState_h
viskores::Id3 NeighborIndexToFullIndexClamp(const viskores::IdComponent3 &neighbor) const
Takes a local neighborhood index (in the ranges of -neighborhood size to neighborhood size) and retur...
Definition: BoundaryState.h:193
viskores::IdComponent3 MaxNeighborIndices(viskores::IdComponent radius) const
Returns the minimum neighborhood indices that are within the bounds of the data.
Definition: BoundaryState.h:166
viskores::Id NeighborIndexToFlatIndexClamp(viskores::IdComponent neighborI, viskores::IdComponent neighborJ, viskores::IdComponent neighborK) const
Takes a local neighborhood index (in the ranges of -neighborhood size to neighborhood size) and retur...
Definition: BoundaryState.h:265
bool IsNeighborInYBoundary(viskores::IdComponent offset) const
Returns true if the neighbor at the specified offset is contained within the bounds of the cell set i...
Definition: BoundaryState.h:105
const viskores::Id3 & GetCenterIndex() const
Returns the center index of the neighborhood.
Definition: BoundaryState.h:51
Provides a neighborhood's placement with respect to the mesh's boundary.
Definition: BoundaryState.h:39
viskores::Int32 IdComponent
Base type to use to index small lists.
Definition: Types.h:202
viskores::IdComponent3 MinNeighborIndices(viskores::IdComponent radius) const
Returns the minimum neighborhood indices that are within the bounds of the data.
Definition: BoundaryState.h:135
viskores::Id3 PointDimensions
The dimensions of the elements in the mesh.
Definition: BoundaryState.h:294
viskores::IdComponent3 ClampNeighborIndex(viskores::IdComponent neighborI, viskores::IdComponent neighborJ, viskores::IdComponent neighborK) const
Takes a local neighborhood index (in the ranges of -neighborhood size to neighborhood size),...
Definition: BoundaryState.h:243
bool IsNeighborInBoundary(const viskores::IdComponent3 &neighbor) const
Returns true if the neighbor at the specified offset vector is contained within the bounds of the cel...
Definition: BoundaryState.h:119
viskores::Int64 Id
Base type to use to index arrays.
Definition: Types.h:235
Groups connected points that have the same field value.
Definition: Atomic.h:27
viskores::Id3 NeighborIndexToFullIndexClamp(viskores::IdComponent neighborI, viskores::IdComponent neighborJ, viskores::IdComponent neighborK) const
Takes a local neighborhood index (in the ranges of -neighborhood size to neighborhood size) and retur...
Definition: BoundaryState.h:203
viskores::IdComponent3 ClampNeighborIndex(const viskores::IdComponent3 &neighbor) const
Takes a local neighborhood index (in the ranges of -neighborhood size to neighborhood size),...
Definition: BoundaryState.h:233
viskores::Id3 NeighborIndexToFullIndex(viskores::IdComponent neighborI, viskores::IdComponent neighborJ, viskores::IdComponent neighborK) const
Takes a local neighborhood index (in the ranges of -neighborhood size to neighborhood size) and retur...
Definition: BoundaryState.h:220
viskores::Id NeighborIndexToFlatIndexClamp(const viskores::IdComponent3 &neighbor) const
Takes a local neighborhood index (in the ranges of -neighborhood size to neighborhood size) and retur...
Definition: BoundaryState.h:256
BoundaryState(const viskores::Id3 &ijk, const viskores::Id3 &pdims)
Definition: BoundaryState.h:42
#define VISKORES_ASSERT(condition)
Definition: Assert.h:51
viskores::Id3 NeighborIndexToFullIndex(const viskores::IdComponent3 &neighbor) const
Takes a local neighborhood index (in the ranges of -neighborhood size to neighborhood size) and retur...
Definition: BoundaryState.h:214
bool IsRadiusInYBoundary(viskores::IdComponent radius) const
Returns true if a neighborhood of the given radius is contained within the bounds of the cell set in ...
Definition: BoundaryState.h:68
constexpr viskores::Vec< T, viskores::IdComponent(sizeof...(Ts)+1)> make_Vec(T value0, Ts &&... args)
Initializes and returns a Vec containing all the arguments.
Definition: Types.h:1262
bool IsRadiusInZBoundary(viskores::IdComponent radius) const
Returns true if a neighborhood of the given radius is contained within the bounds of the cell set in ...
Definition: BoundaryState.h:74
bool IsRadiusInBoundary(viskores::IdComponent radius) const
Returns true if a neighborhood of the given radius is contained within the bounds of the cell set.
Definition: BoundaryState.h:89
viskores::Id3 IJK
The 3D index of the visited element.
Definition: BoundaryState.h:291
bool IsNeighborInXBoundary(viskores::IdComponent offset) const
Returns true if the neighbor at the specified offset is contained within the bounds of the cell set i...
Definition: BoundaryState.h:100
viskores::Id NeighborIndexToFlatIndex(const viskores::IdComponent3 &neighbor) const
Takes a local neighborhood index (in the ranges of -neighborhood size to neighborhood size) and retur...
Definition: BoundaryState.h:276
bool IsNeighborInZBoundary(viskores::IdComponent offset) const
Returns true if the neighbor at the specified offset is contained within the bounds of the cell set i...
Definition: BoundaryState.h:110
bool IsRadiusInXBoundary(viskores::IdComponent radius) const
Returns true if a neighborhood of the given radius is contained within the bounds of the cell set in ...
Definition: BoundaryState.h:62
#define VISKORES_EXEC
Definition: ExportMacros.h:59
viskores::Id NeighborIndexToFlatIndex(viskores::IdComponent neighborI, viskores::IdComponent neighborJ, viskores::IdComponent neighborK) const
Takes a local neighborhood index (in the ranges of -neighborhood size to neighborhood size) and retur...
Definition: BoundaryState.h:283