Isle
|
[AI] Represents a 1D segment defined by a minimum and maximum integer value. More...
#include <mxregion.h>
Public Member Functions | |
MxSegment (MxS32 p_min, MxS32 p_max) | |
[AI] Constructs a new segment with the specified minimum and maximum boundaries. More... | |
MxS32 | GetMin () |
[AI] Returns the lower boundary of the segment (inclusive). More... | |
MxS32 | GetMax () |
[AI] Returns the upper boundary of the segment (exclusive). More... | |
MxSegment * | Clone () |
[AI] Creates a copy of the current segment. More... | |
MxBool | Combine (MxSegment &p_seg) |
[AI] Attempt to merge this segment with the specified segment, if they are adjacent or overlapping. More... | |
MxBool | Adjacent (MxSegment &p_seg) |
[AI] Checks if this segment is adjacent to another (i.e., ends where the other begins or vice versa). More... | |
MxBool | IntersectsH (MxRect32 &p_rect) |
[AI] Determines if this segment horizontally intersects a given rectangle, interpreted as an interval comparison. More... | |
MxBool | operator== (MxSegment &p_seg) |
[AI] Equality operator: checks if this segment has identical boundaries to the specified segment. More... | |
MxBool | operator!= (MxSegment &p_seg) |
[AI] Inequality operator: checks if this segment differs from the specified segment by its boundaries. More... | |
Protected Attributes | |
MxS32 | m_min |
[AI] Lower boundary of the segment (inclusive). [AI] More... | |
MxS32 | m_max |
[AI] Upper boundary of the segment (exclusive). [AI] More... | |
[AI] Represents a 1D segment defined by a minimum and maximum integer value.
This class is used in region and span decomposition to denote contiguous or adjacent ranges along one axis.
Definition at line 13 of file mxregion.h.
[AI] Constructs a new segment with the specified minimum and maximum boundaries.
p_min | Lower bound of the segment (inclusive). [AI] |
p_max | Upper bound of the segment (exclusive). [AI] |
Definition at line 24 of file mxregion.h.
[AI] Checks if this segment is adjacent to another (i.e., ends where the other begins or vice versa).
p_seg | Reference to the segment to check adjacency with. [AI] |
Definition at line 60 of file mxregion.h.
|
inline |
[AI] Creates a copy of the current segment.
Definition at line 46 of file mxregion.h.
[AI] Attempt to merge this segment with the specified segment, if they are adjacent or overlapping.
p_seg | Reference to a segment to attempt to merge. [AI] |
|
inline |
[AI] Returns the upper boundary of the segment (exclusive).
Definition at line 40 of file mxregion.h.
|
inline |
[AI] Returns the lower boundary of the segment (inclusive).
Definition at line 34 of file mxregion.h.
[AI] Determines if this segment horizontally intersects a given rectangle, interpreted as an interval comparison.
p_rect | Rectangle whose horizontal range is compared. [AI] |
Definition at line 67 of file mxregion.h.
[AI] Inequality operator: checks if this segment differs from the specified segment by its boundaries.
p_seg | Reference to segment for the comparison. [AI] |
Definition at line 81 of file mxregion.h.
[AI] Equality operator: checks if this segment has identical boundaries to the specified segment.
p_seg | Reference to segment for the comparison. [AI] |
Definition at line 74 of file mxregion.h.
|
protected |
[AI] Upper boundary of the segment (exclusive). [AI]
Definition at line 16 of file mxregion.h.
|
protected |
[AI] Lower boundary of the segment (inclusive). [AI]
Definition at line 15 of file mxregion.h.