A collection of MarkupModelHitItem objects. More...
Public Member Functions | |
MarkupModelHitItemCollection () | |
Constructs a hit item collection. More... | |
MarkupModelHitItemCollection (const MarkupModelHitItemCollection &other) | |
Constructs a hit item collection as a copy of other. More... | |
MarkupModelHitItemCollection & | operator= (const MarkupModelHitItemCollection &other) |
Sets this object to a copy of other. More... | |
size_t | count () const |
Returns the number of items in the collection. More... | |
MarkupModelHitItem | item (size_t index) const |
Returns the HitItem at the given index. More... | |
void | add (const MarkupModelHitItem &item) |
Adds the given HitItem to the collection and returns the new number of items. More... | |
MarkupModelHitItemCollection | firstItems (double equalItemThreshold) const |
Returns all the HitItem instance that are at minimal distance. More... | |
A collection of MarkupModelHitItem objects.
cee::vis::MarkupModelHitItemCollection::MarkupModelHitItemCollection | ( | ) |
Constructs a hit item collection.
cee::vis::MarkupModelHitItemCollection::MarkupModelHitItemCollection | ( | const MarkupModelHitItemCollection & | other | ) |
Constructs a hit item collection as a copy of other.
void cee::vis::MarkupModelHitItemCollection::add | ( | const MarkupModelHitItem & | item | ) |
Adds the given HitItem to the collection and returns the new number of items.
size_t cee::vis::MarkupModelHitItemCollection::count | ( | ) | const |
Returns the number of items in the collection.
MarkupModelHitItemCollection cee::vis::MarkupModelHitItemCollection::firstItems | ( | double | equalItemThreshold | ) | const |
Returns all the HitItem instance that are at minimal distance.
Two items are considered equal when their distance differs by no more than the given equalItemThreshold
MarkupModelHitItem cee::vis::MarkupModelHitItemCollection::item | ( | size_t | index | ) | const |
Returns the HitItem at the given index.
MarkupModelHitItemCollection & cee::vis::MarkupModelHitItemCollection::operator= | ( | const MarkupModelHitItemCollection & | other | ) |
Sets this object to a copy of other.