summaryrefslogtreecommitdiff
path: root/src/positioning/qgeoshape_p.h
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2016-08-05 22:21:12 +0200
committerPaolo Angelelli <paolo.angelelli@qt.io>2016-11-30 08:54:11 +0000
commitcd8880cc04b22610e835e6cc02cc16ac22ec9fae (patch)
tree37a5569c4eca55f70d5584f54fa2479dcf9dad3c /src/positioning/qgeoshape_p.h
parent0a552f285fdc3760d9755109ceef3b87392a308d (diff)
downloadqtlocation-cd8880cc04b22610e835e6cc02cc16ac22ec9fae.tar.gz
Add support for boundingGeoRectangle to QGeoShape
this patch introduces QGeoShape::boundingGeoRectangle, which returns a QGeoRectangle containing the latitudinal/longitudinal bounds of a geoshape. The bounding geo rectangle is projection independent, as it returns a georectangle containing the min/max latitudes/longitudes of the shape. Change-Id: Ie3a83ec41f87ea3753899d2278e664fe2469f778 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/positioning/qgeoshape_p.h')
-rw-r--r--src/positioning/qgeoshape_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/positioning/qgeoshape_p.h b/src/positioning/qgeoshape_p.h
index 275886ff..251e872c 100644
--- a/src/positioning/qgeoshape_p.h
+++ b/src/positioning/qgeoshape_p.h
@@ -69,6 +69,8 @@ public:
virtual QGeoCoordinate center() const = 0;
+ virtual QGeoRectangle boundingGeoRectangle() const = 0;
+
virtual void extendShape(const QGeoCoordinate &coordinate) = 0;
virtual QGeoShapePrivate *clone() const = 0;
@@ -89,4 +91,3 @@ Q_INLINE_TEMPLATE QGeoShapePrivate *QSharedDataPointer<QGeoShapePrivate>::clone(
QT_END_NAMESPACE
#endif
-