Loading...
Searching...
No Matches
EditGeometry::RingPolygon Struct Reference

A polygon: exactly one exterior ring + zero-or-more interior rings. More...

#include <core/editgeometry.h>

Collaboration diagram for EditGeometry::RingPolygon:

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).
 

Detailed Description

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.

Member Function Documentation

◆ holeCount()

int EditGeometry::RingPolygon::holeCount ( ) const
inlinenodiscard

Count stored interior rings without validating them.

Returns
Number of interior-ring vectors.

◆ isEmpty()

bool EditGeometry::RingPolygon::isEmpty ( ) const
inlinenodiscard

Test only whether the exterior has enough vertices to form a ring.

Returns
True for fewer than three exterior vertices; does not test area, intersections or holes.

Member Data Documentation

◆ exterior

QVector<QPointF> EditGeometry::RingPolygon::exterior

Outer boundary (open ring, >= 3 pts).

◆ interiors

QVector<QVector<QPointF> > EditGeometry::RingPolygon::interiors

Holes; each an open ring (>= 3 pts).


The documentation for this struct was generated from the following file: