Go to the documentation of this file.
10 #ifndef vtk_m_exec_BoundaryState_h
11 #define vtk_m_exec_BoundaryState_h
121 if (this->
IJK[component] >= radius)
123 minIndices[component] = -radius;
145 maxIndices[component] = radius;
150 this->
IJK[component] - 1);
186 return this->
IJK + neighbor;
266 #endif //vtk_m_exec_BoundaryState_h
Provides a neighborhood's placement with respect to the mesh's boundary.
Definition: BoundaryState.h:31
VTKM_EXEC vtkm::Id3 NeighborIndexToFullIndex(const vtkm::IdComponent3 &neighbor) const
Definition: BoundaryState.h:184
#define VTKM_EXEC
Definition: ExportMacros.h:51
VTKM_EXEC BoundaryState(const vtkm::Id3 &ijk, const vtkm::Id3 &pdims)
Definition: BoundaryState.h:34
Groups connected points that have the same field value.
Definition: Atomic.h:19
VTKM_EXEC vtkm::IdComponent3 ClampNeighborIndex(vtkm::IdComponent neighborI, vtkm::IdComponent neighborJ, vtkm::IdComponent neighborK) const
Definition: BoundaryState.h:212
VTKM_EXEC vtkm::Id NeighborIndexToFlatIndexClamp(const vtkm::IdComponent3 &neighbor) const
Definition: BoundaryState.h:227
VTKM_EXEC vtkm::IdComponent3 MaxNeighborIndices(vtkm::IdComponent radius) const
Returns the minimum neighborhood indices that are within the bounds of the data.
Definition: BoundaryState.h:136
#define VTKM_ASSERT(condition)
Definition: Assert.h:43
vtkm::Int32 IdComponent
Represents a component ID (index of component in a vector).
Definition: Types.h:168
VTKM_EXEC bool IsNeighborInBoundary(const vtkm::IdComponent3 &neighbor) const
Returns true if the neighbor at the specified offset vector is contained within the bounds of the cel...
Definition: BoundaryState.h:106
vtkm::Id3 IJK
Definition: BoundaryState.h:260
VTKM_EXEC vtkm::Id NeighborIndexToFlatIndex(const vtkm::IdComponent3 &neighbor) const
Definition: BoundaryState.h:247
VTKM_EXEC bool IsRadiusInXBoundary(vtkm::IdComponent radius) const
Definition: BoundaryState.h:50
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
VTKM_EXEC vtkm::IdComponent3 ClampNeighborIndex(const vtkm::IdComponent3 &neighbor) const
Definition: BoundaryState.h:204
VTKM_EXEC bool IsRadiusInYBoundary(vtkm::IdComponent radius) const
Definition: BoundaryState.h:55
VTKM_EXEC vtkm::Id3 NeighborIndexToFullIndex(vtkm::IdComponent neighborI, vtkm::IdComponent neighborJ, vtkm::IdComponent neighborK) const
Definition: BoundaryState.h:189
VTKM_EXEC vtkm::Id3 NeighborIndexToFullIndexClamp(vtkm::IdComponent neighborI, vtkm::IdComponent neighborJ, vtkm::IdComponent neighborK) const
Definition: BoundaryState.h:171
VTKM_EXEC bool IsRadiusInZBoundary(vtkm::IdComponent radius) const
Definition: BoundaryState.h:60
VTKM_EXEC vtkm::Id NeighborIndexToFlatIndexClamp(vtkm::IdComponent neighborI, vtkm::IdComponent neighborJ, vtkm::IdComponent neighborK) const
Definition: BoundaryState.h:234
constexpr VTKM_EXEC_CONT vtkm::Vec< T, vtkm::IdComponent(sizeof...(Ts)+1)> make_Vec(T value0, Ts &&... args)
Initializes and returns a Vec containing all the arguments.
Definition: Types.h:1212
vtkm::Id3 PointDimensions
Definition: BoundaryState.h:261
VTKM_EXEC bool IsNeighborInXBoundary(vtkm::IdComponent offset) const
Definition: BoundaryState.h:88
VTKM_EXEC bool IsNeighborInYBoundary(vtkm::IdComponent offset) const
Definition: BoundaryState.h:92
VTKM_EXEC vtkm::IdComponent3 MinNeighborIndices(vtkm::IdComponent radius) const
Returns the minimum neighborhood indices that are within the bounds of the data.
Definition: BoundaryState.h:114
VTKM_EXEC vtkm::Id3 NeighborIndexToFullIndexClamp(const vtkm::IdComponent3 &neighbor) const
Definition: BoundaryState.h:164
VTKM_EXEC vtkm::Id NeighborIndexToFlatIndex(vtkm::IdComponent neighborI, vtkm::IdComponent neighborJ, vtkm::IdComponent neighborK) const
Definition: BoundaryState.h:253
VTKM_EXEC bool IsNeighborInZBoundary(vtkm::IdComponent offset) const
Definition: BoundaryState.h:96
VTKM_EXEC bool IsRadiusInBoundary(vtkm::IdComponent radius) const
Returns true if a neighborhood of the given radius is contained within the bounds of the cell set.
Definition: BoundaryState.h:76