Public Types | |
| using | iterator = PolygonIterator< Shape, Polygon > |
Public Member Functions | |
| Shape (Common::ReadStream &stream) | |
| Common::Point | firstPoint () const |
| uint | polygonCount () const |
| bool | empty () const |
| iterator | begin () const |
| iterator | end () const |
| Polygon | at (uint index) const |
| int32 | polygonContaining (Common::Point query) const |
| bool | contains (Common::Point query) const |
| Common::Point | closestPointTo (Common::Point query, int32 &polygonI) const |
| Common::Point | closestPointTo (Common::Point query) const |
| void | setAsRectangle (const Common::Rect &rect) |
Protected Types | |
| using | PolygonRange = Common::Pair< uint, uint > |
Protected Member Functions | |
| uint | addPolygon (uint maxCount) |
Protected Attributes | |
| Common::Array< PolygonRange > | _polygons |
| Common::Array< Common::Point > | _points |