QLandmarkIdFilter Class Reference
The QLandmarkIdFilter class is used to search for landmarks based on a list of landmark identifiers. More...
#include <QLandmarkIdFilter>
Inherits QLandmarkFilter.
Public Types
Public Functions
Detailed Description
The QLandmarkIdFilter class is used to search for landmarks based on a list of landmark identifiers.
Member Type Documentation
enum QLandmarkIdFilter::MatchingScheme
Defines the matching behavior of the id filter.
|
Constant | Value | Description |
QLandmarkIdFilter::MatchAll | 0 | A landmark must be returned for every id assigned to the filter. Failure to match every id results in a QLandmarkManager::DoesNotExistError. |
QLandmarkIdFilter::MatchSubset | 1 | Every id does not have to be matched to a landmark. Matching only a subset of the assigned ids is acceptable. |
Member Function Documentation
QLandmarkIdFilter::QLandmarkIdFilter ( const QList<QLandmarkId> & ids = QList<QLandmarkId> (), MatchingScheme matchingScheme = MatchSubset )
Creates a filter that selects landmarks using a list of landmark ids and a matchingScheme.
QLandmarkIdFilter::QLandmarkIdFilter ( const QLandmarkFilter & other )
Constructs a copy of other if possible, otherwise constructs a new id filter.
QLandmarkIdFilter::~QLandmarkIdFilter () [virtual]
Destroys the filter.
void QLandmarkIdFilter::append ( const QLandmarkId & id )
Adds id to the list of landmark ids this filter searches for.
void QLandmarkIdFilter::clear ()
Removes all identifiers from the filter.
QList<QLandmarkId> QLandmarkIdFilter::landmarkIds () const
Returns the list of landmark identifiers that the filter will use to determine matches.
See also setLandmarkIds().
MatchingScheme QLandmarkIdFilter::matchingScheme () const
Returns the matching scheme of the filter.
The matching scheme specifies whether the filter needs to match all landmark ids or only a subset. The default scheme is MatchSubset.
See also setMatchingScheme().
void QLandmarkIdFilter::remove ( const QLandmarkId & id )
Removes id to the list of landmark ids this filter searches for.
void QLandmarkIdFilter::setLandmarkIds ( const QList<QLandmarkId> & ids )
Sets the ids that the filter will use to determine matches.
See also landmarkIds().
void QLandmarkIdFilter::setMatchingScheme ( MatchingScheme matchingScheme )
Sets the matchingScheme of the filter.
See also matchingScheme().
QLandmarkIdFilter & QLandmarkIdFilter::operator<< ( const QLandmarkId & id )
Appends the given id to the list of landmark identifiers this filter searches for.