class TSpatialTree::AreaIntersectIterator

Iterator that iterates over all elements intersecting the specified AABox.

Public

Constructors

AreaIntersectIterator

AreaIntersectIterator(const TSpatialTree &tree, const ScalarBoundsType &bounds)

Constructs an iterator that iterates over all elements in the specified tree that intersect the specified bounds.

Methods

GetElement

const ElementType &GetElement() const

Returns the contents of the current element.

MoveNext() must be called at least once and it must return true prior to attempting to access this data.

MoveNext

bool MoveNext()

Moves to the next intersecting element.

Iterator starts at a position before the first element, therefore this method must be called at least once before attempting to access the current element data. If the method returns false it means iterator end has been reached and attempting to access data will result in an error.

Private

Fields

mNodeIterator

NodeIterator mNodeIterator

mElementIterator

ElementIterator mElementIterator

mBounds

SIMDBoundsType mBounds