18 #ifndef QGSQUADRILATERAL_H
19 #define QGSQUADRILATERAL_H
22 #include "qgis_core.h"
107 static constexpr
auto &rectangleFromDiagonal = rectangleFromExtent;
202 QString toString(
int pointPrecision = 17 ) const;
214 SIP_PYOBJECT __repr__();
216 QString
str = QStringLiteral(
"<QgsQuadrilateral: %1>" ).arg( sipCpp->toString() );
217 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
221 QgsPoint mPoint1, mPoint2, mPoint3, mPoint4;
Line string geometry type, with support for z-dimension and m-values.
A class to represent a 2D point.
Point geometry type, with support for z-dimension and m-values.
Quadrilateral geometry type.
QgsQuadrilateral() SIP_HOLDGIL
Constructor for an empty quadrilateral geometry.
Point
Simple enumeration to ensure indices in setPoint.
ConstructionOption
A quadrilateral can be constructed from 3 points where the second distance can be determined by the t...
@ Distance
Second distance is equal to the distance between 2nd and 3rd point.
@ Projected
Second distance is equal to the distance of the perpendicular projection of the 3rd point on the segm...
A rectangle specified with double values.
CORE_EXPORT std::unique_ptr< QgsPolygon > toPolygon(const QgsMeshFace &face, const QVector< QgsMeshVertex > &vertices)
Returns face as polygon geometry, caller is responsible for delete.
QVector< QgsPoint > QgsPointSequence