Go to the documentation of this file.
10 #ifndef vtk_m_RangeId2_h
11 #define vtk_m_RangeId2_h
79 return (this->X.
Contains(val[0]) && this->Y.Contains(val[1]));
126 return unionRangeId2;
137 return ((this->X == range.
X) && (this->Y == range.
Y));
143 return ((this->X != range.
X) || (this->Y != range.
Y));
179 return stream <<
"{ X:" << range.
X <<
", Y:" << range.
Y <<
" }";
182 #endif //vtk_m_RangeId2_h
Groups connected points that have the same field value.
Definition: Atomic.h:19
VTKM_EXEC_CONT RangeId2(vtkm::Id minX, vtkm::Id maxX, vtkm::Id minY, vtkm::Id maxY)
Definition: RangeId2.h:42
VTKM_EXEC_CONT bool IsNonEmpty() const
Determine if the range is non-empty.
Definition: RangeId2.h:72
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
vtkm::Int32 IdComponent
Represents a component ID (index of component in a vector).
Definition: Types.h:168
Represent 2D integer range.
Definition: RangeId2.h:27
const VTKM_EXEC_CONT vtkm::RangeId & operator[](IdComponent c) const noexcept
Definition: RangeId2.h:160
Represent a range of vtkm::Id values.
Definition: RangeId.h:28
VTKM_EXEC_CONT void Include(const vtkm::Vec< T, 2 > &point)
Expand range to include a value.
Definition: RangeId2.h:99
VTKM_EXEC_CONT bool operator!=(const vtkm::RangeId2 &range) const
Definition: RangeId2.h:141
VTKM_EXEC_CONT bool IsNonEmpty() const
Determine if the range is valid.
Definition: RangeId.h:54
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
VTKM_EXEC_CONT bool Contains(const vtkm::Id2 &val) const
Determines if an Id2 value is within the range.
Definition: RangeId2.h:77
VTKM_EXEC_CONT bool operator==(const vtkm::RangeId2 &range) const
Definition: RangeId2.h:135
VTKM_EXEC_CONT vtkm::RangeId2 operator+(const vtkm::RangeId2 &other) const
Operator for union
Definition: RangeId2.h:132
VTKM_EXEC_CONT vtkm::Id Center() const
Returns the center of the range.
Definition: RangeId.h:77
VTKM_EXEC_CONT RangeId2(const vtkm::RangeId &xrange, const vtkm::RangeId &yrange)
Definition: RangeId2.h:35
VTKM_CONT std::ostream & operator<<(std::ostream &stream, const vtkm::Bounds &bounds)
Helper function for printing bounds during testing.
Definition: Bounds.h:237
VTKM_EXEC_CONT RangeId2(const vtkm::Id range[4])
Initialize range with an array of 6 values in the order xmin, xmax, ymin, ymax, zmin,...
Definition: RangeId2.h:52
#define VTKM_CONT
Definition: ExportMacros.h:57
VTKM_EXEC_CONT bool Contains(vtkm::Id value) const
Determines if a value is within the range.
Definition: RangeId.h:62
VTKM_EXEC_CONT vtkm::Id Length() const
Returns the length of the range.
Definition: RangeId.h:70
VTKM_EXEC_CONT vtkm::Id2 Dimensions() const
Definition: RangeId2.h:90
VTKM_EXEC_CONT RangeId2(const vtkm::Id2 &min, const vtkm::Id2 &max)
Initialize range with the minimum and the maximum corners.
Definition: RangeId2.h:61
VTKM_EXEC_CONT vtkm::Id2 Center() const
Returns the center of the range.
Definition: RangeId2.h:87
VTKM_EXEC_CONT vtkm::RangeId & operator[](IdComponent c) noexcept
Definition: RangeId2.h:147
VTKM_EXEC_CONT void Include(vtkm::Id value)
Expand range to include a value.
Definition: RangeId.h:86
VTKM_EXEC_CONT void Include(const vtkm::RangeId2 &range)
Expand range to include other range.
Definition: RangeId2.h:111
vtkm::RangeId X
Definition: RangeId2.h:29
VTKM_EXEC_CONT vtkm::RangeId2 Union(const vtkm::RangeId2 &other) const
Return the union of this and another range.
Definition: RangeId2.h:122
vtkm::RangeId Y
Definition: RangeId2.h:30
vtkm::Vec< vtkm::Id, 2 > Id2
Id2 corresponds to a 2-dimensional index.
Definition: Types.h:885