From cd8880cc04b22610e835e6cc02cc16ac22ec9fae Mon Sep 17 00:00:00 2001 From: Paolo Angelelli Date: Fri, 5 Aug 2016 22:21:12 +0200 Subject: 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 --- src/positioning/qgeoshape_p.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/positioning/qgeoshape_p.h') 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::clone( QT_END_NAMESPACE #endif - -- cgit v1.2.1