#include <SgRect.h>
Definition at line 190 of file SgRect.h.
Public Member Functions | |
SgRectIterator (const SgRect &rect) | |
void | operator++ () |
Iterate through rectangle: left to right, top to bottom. | |
SgPoint | operator * () const |
Return the value of the current element. | |
operator bool () const | |
Return true if iteration is valid, otherwise false. | |
Private Attributes | |
const SgRect & | m_rect |
SgPoint | m_cursor |
SgPoint | m_end |
SgPoint SgRectIterator::operator * | ( | ) | const |
SgRectIterator::operator bool | ( | ) | const |
void SgRectIterator::operator++ | ( | ) |
Iterate through rectangle: left to right, top to bottom.
Definition at line 201 of file SgRect.h.
References SgPointUtil::Col(), SgRect::Contains(), SgRect::Left(), m_cursor, m_rect, SgRect::Right(), SG_ASSERT, SG_NS, and SG_WE.
SgPoint SgRectIterator::m_cursor [private] |
Definition at line 225 of file SgRect.h.
Referenced by operator *(), operator bool(), and operator++().
SgPoint SgRectIterator::m_end [private] |
const SgRect& SgRectIterator::m_rect [private] |