SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
EditGeometry::RingPolygon Struct Reference

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

#include <editgeometry.h>

Collaboration diagram for EditGeometry::RingPolygon:

Public Member Functions

bool isEmpty () const
 
int holeCount () const
 

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
inline

◆ isEmpty()

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

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: