Qt Mobility Reference Documentation

QLandmarkProximityFilter Class Reference

The QLandmarkProximityFilter class is used to search for landmarks based on the radius around a given coordinate. More...

 #include <QLandmarkProximityFilter>

Inherits QLandmarkFilter.


Public Types

enum Selection { SelectAll, SelectNearestOnly }

Public Functions

QLandmarkProximityFilter ( const QGeoCoordinate & coordinate = QGeoCoordinate(), double radius = -1 )
QLandmarkProximityFilter ( const QLandmarkFilter & other )
virtual ~QLandmarkProximityFilter ()
QGeoCoordinate coordinate () const
double radius () const
Selection selection () const
void setCoordinate ( const QGeoCoordinate & coordinate )
void setRadius ( double radius )
void setSelection ( Selection selection )

Detailed Description

The QLandmarkProximityFilter class is used to search for landmarks based on the radius around a given coordinate.


Member Type Documentation

enum QLandmarkProximityFilter::Selection

Defines the selection behavior of the proximity filter.

ConstantValueDescription
QLandmarkProximityFilter::SelectAll1Selects all landmarks in the given proximity
QLandmarkProximityFilter::SelectNearestOnly0Selects only the closest landmark

Member Function Documentation

QLandmarkProximityFilter::QLandmarkProximityFilter ( const QGeoCoordinate & coordinate = QGeoCoordinate(), double radius = -1 )

Creates a filter that will select landmarks within a given radius around a central coordinate.

QLandmarkProximityFilter::QLandmarkProximityFilter ( const QLandmarkFilter & other )

Constructs a copy of other if possible, otherwise constructs a new proximity filter.

QLandmarkProximityFilter::~QLandmarkProximityFilter () [virtual]

Destroys the filter.

QGeoCoordinate QLandmarkProximityFilter::coordinate () const

Returns the central coordinate of the filter.

See also setCoordinate().

double QLandmarkProximityFilter::radius () const

Returns the radius of the filter.

See also setRadius().

Selection QLandmarkProximityFilter::selection () const

Returns the selection type of the proximity filter. By default the proximity filter will be SelectAll to select all landmarks with a given proximity.

See also setSelection().

void QLandmarkProximityFilter::setCoordinate ( const QGeoCoordinate & coordinate )

Sets the central coordinate of the filter.

See also coordinate().

void QLandmarkProximityFilter::setRadius ( double radius )

Sets the radius of the filter.

See also radius().

void QLandmarkProximityFilter::setSelection ( Selection selection )

Sets the selection type of the proximity filter.

See also selection().


Copyright © 2009-2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Mobility Project 1.1.0