A polygon: exactly one exterior ring + zero-or-more interior rings. More...
#include <core/editgeometry.h>
Public Member Functions | |
| bool | isEmpty () const |
| Test only whether the exterior has enough vertices to form a ring. | |
| int | holeCount () const |
| Count stored interior rings without validating them. | |
Public Attributes | |
| QVector< QPointF > | exterior |
| Outer boundary (open ring, >= 3 pts). | |
| QVector< QVector< QPointF > > | interiors |
| Holes; each an open ring (>= 3 pts). | |
A polygon: exactly one exterior ring + zero-or-more interior rings.
Orientation convention after normalizeRingPolygon(): exterior is counter-clockwise (positive signed area), interiors clockwise (negative signed area). Consumers that care about ring winding (e.g. Shapefile export) may rely on that post-normalize.
|
inlinenodiscard |
Count stored interior rings without validating them.
|
inlinenodiscard |
Test only whether the exterior has enough vertices to form a ring.
| QVector<QPointF> EditGeometry::RingPolygon::exterior |
Outer boundary (open ring, >= 3 pts).
| QVector<QVector<QPointF> > EditGeometry::RingPolygon::interiors |
Holes; each an open ring (>= 3 pts).