The QLandmarkProximityFilter class is used to search for landmarks based on the radius around a given coordinate and perform sorting by distance. More...
#include <QLandmarkProximityFilter>
Inherits: QLandmarkFilter.
This class was introduced in Qt Mobility 1.1.
QLandmarkProximityFilter ( const QGeoCoordinate & center = QGeoCoordinate(), qreal radius = -1 ) | |
QLandmarkProximityFilter ( const QGeoBoundingCircle & circle ) | |
QLandmarkProximityFilter ( const QLandmarkFilter & other ) | |
virtual | ~QLandmarkProximityFilter () |
QGeoBoundingCircle | boundingCircle () |
QGeoCoordinate | center () const |
qreal | radius () const |
void | setBoundingCircle ( const QGeoBoundingCircle & circle ) |
void | setCenter ( const QGeoCoordinate & center ) |
void | setRadius ( qreal radius ) |
The QLandmarkProximityFilter class is used to search for landmarks based on the radius around a given coordinate and perform sorting by distance.
In order to be a valid filter, the region covered by the proximity filter must not cover one of the poles. The landmarks are returned in ascending order of distance. A proximity filter may be used inside an intersection filter to sort landmarks by distance in combination with other criteria such as categories. (Note that a using sort order other than QLandmarkSortOrder (i.e. no sort) will override the sorting by distance).
Creates a filter that will select landmarks within a given radius around a center coordinate.
This function was introduced in Qt Mobility 1.1.
Creates a filter that will select landmarks withiin a given bounding circle.
This function was introduced in Qt Mobility 1.1.
Constructs a copy of other if possible, otherwise constructs a new proximity filter.
This function was introduced in Qt Mobility 1.1.
Destroys the filter.
Sets the bounding circle for the proximity filter.
This function was introduced in Qt Mobility 1.1.
See also setBoundingCircle().
Returns the center coordinate of the filter.
This function was introduced in Qt Mobility 1.1.
See also setCenter().
Returns the radius of the filter. The unit of the radius is meters.
This function was introduced in Qt Mobility 1.1.
See also setRadius().
Sets the bounding circle for the proximity filter
This function was introduced in Qt Mobility 1.1.
See also boundingCircle().
Sets the center coordinate of the filter.
This function was introduced in Qt Mobility 1.1.
See also center().
Sets the radius of the filter. The unit of the radius is meters.
This function was introduced in Qt Mobility 1.1.
See also radius().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.