37 XmEdge(
int a_pt1,
int a_pt2,
bool a_sorted =
false);
38 explicit XmEdge(
const std::pair<int, int>& a_edge);
void SetFirst(int a_pt1)
Set the first index.
void SetSecond(int a_pt2)
Set the second index.
int GetSecond() const
Get the second index.
int m_pt1
First point on the edge.
bool IsEquivalent(const XmEdge &a_edge) const
Test if edge is the same ignoring direction.
int m_pt2
Second point on the edge.
void SortIndexes()
Sort the indexes so minimum index is first.
Two integer values representing an edge of an XmUGrid. By default has a direction. Can be sorted to have minimum index first.
bool XmEdgesEquivalent(const XmEdge &a_edge1, const XmEdge &a_edge2)
Test if two edges are the same ignoring direction.
int GetFirst() const
Get the first index.
bool operator==(const XmEdge &a_rhs) const
Equals operator.
XmEdge()
Default constructor.
bool operator<(const XmEdge &a_rhs) const
Less than operator by first index then second.