One part of a geometry: a polygon (exterior + holes), a line run, or a single point.
More...
#include <featuregeometry.h>
One part of a geometry: a polygon (exterior + holes), a line run, or a single point.
For non-polygon types holes is always empty and exterior carries the vertices (one for a point).
◆ boundingRect()
| QRectF openswmmvis::feature::Part::boundingRect |
( |
| ) |
const |
◆ containsPoint()
| bool openswmmvis::feature::Part::containsPoint |
( |
const QPointF & |
p | ) |
const |
True when p is inside the exterior and outside every hole — the same predicate mesh::pointInRegion applies to quad regions.
◆ isEmpty()
| bool openswmmvis::feature::Part::isEmpty |
( |
| ) |
const |
|
inline |
◆ netArea()
| double openswmmvis::feature::Part::netArea |
( |
| ) |
const |
Ring area minus the area of every hole; absolute value, so orientation does not matter to the caller. Zero for non-polygon parts.
◆ normalizeOrientation()
| void openswmmvis::feature::Part::normalizeOrientation |
( |
| ) |
|
Apply Ring::normalizeCCW to the exterior and reverse every hole so holes run clockwise — the OGR/GeoPackage convention.
◆ operator!=()
| bool openswmmvis::feature::Part::operator!= |
( |
const Part & |
o | ) |
const |
|
inline |
◆ operator==()
| bool openswmmvis::feature::Part::operator== |
( |
const Part & |
o | ) |
const |
◆ exterior
| Ring openswmmvis::feature::Part::exterior |
◆ holes
| QVector<Ring> openswmmvis::feature::Part::holes |
Interior rings; polygon parts only.
The documentation for this struct was generated from the following files: