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
openswmmvis::feature::Part Struct Reference

One part of a geometry: a polygon (exterior + holes), a line run, or a single point. More...

#include <featuregeometry.h>

Collaboration diagram for openswmmvis::feature::Part:

Public Member Functions

bool isEmpty () const
 
QRectF boundingRect () const
 
double netArea () const
 
bool containsPoint (const QPointF &p) const
 
void normalizeOrientation ()
 
bool operator== (const Part &o) const
 
bool operator!= (const Part &o) const
 

Public Attributes

Ring exterior
 
QVector< Ringholes
 Interior rings; polygon parts only.
 

Detailed Description

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

Member Function Documentation

◆ boundingRect()

QRectF openswmmvis::feature::Part::boundingRect ( ) const
Here is the call graph for this function:

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

Here is the call graph for this function:

◆ isEmpty()

bool openswmmvis::feature::Part::isEmpty ( ) const
inline
Here is the call graph for this function:

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

Here is the call graph for this function:

◆ normalizeOrientation()

void openswmmvis::feature::Part::normalizeOrientation ( )

Apply Ring::normalizeCCW to the exterior and reverse every hole so holes run clockwise — the OGR/GeoPackage convention.

Here is the call graph for this function:

◆ operator!=()

bool openswmmvis::feature::Part::operator!= ( const Part o) const
inline

◆ operator==()

bool openswmmvis::feature::Part::operator== ( const Part o) const

Member Data Documentation

◆ 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: