marble
#include <OsmPlacemark.h>
Public Member Functions | |
OsmPlacemark () | |
QString | additionalInformation () const |
OsmCategory | category () const |
QString | houseNumber () const |
qreal | latitude () const |
qreal | longitude () const |
qreal | matchScore (const DatabaseQuery *query) const |
QString | name () const |
bool | operator< (const OsmPlacemark &other) const |
bool | operator== (const OsmPlacemark &other) const |
int | regionId () const |
void | setAdditionalInformation (const QString &name) |
void | setCategory (OsmCategory category) |
void | setHouseNumber (const QString &houseNumber) |
void | setLatitude (qreal latitude) |
void | setLongitude (qreal longitude) |
void | setName (const QString &name) |
void | setRegionId (int id) |
Detailed Description
A lightweight data structure to represent points of interest like addresses with support for serialization.
Definition at line 24 of file OsmPlacemark.h.
Member Enumeration Documentation
Definition at line 27 of file OsmPlacemark.h.
Constructor & Destructor Documentation
Marble::OsmPlacemark::OsmPlacemark | ( | ) |
Definition at line 16 of file OsmPlacemark.cpp.
Member Function Documentation
QString Marble::OsmPlacemark::additionalInformation | ( | ) | const |
Regions' name.
Definition at line 63 of file OsmPlacemark.cpp.
OsmPlacemark::OsmCategory Marble::OsmPlacemark::category | ( | ) | const |
Definition at line 23 of file OsmPlacemark.cpp.
QString Marble::OsmPlacemark::houseNumber | ( | ) | const |
Placemark's house number, if any.
Definition at line 43 of file OsmPlacemark.cpp.
qreal Marble::OsmPlacemark::latitude | ( | ) | const |
Latitude of the placemark's center point, in degree.
Definition at line 83 of file OsmPlacemark.cpp.
qreal Marble::OsmPlacemark::longitude | ( | ) | const |
Longitude of the placemark's center point, in degree.
Definition at line 73 of file OsmPlacemark.cpp.
qreal Marble::OsmPlacemark::matchScore | ( | const DatabaseQuery * | query | ) | const |
Definition at line 130 of file OsmPlacemark.cpp.
QString Marble::OsmPlacemark::name | ( | ) | const |
Placemark name.
Definition at line 33 of file OsmPlacemark.cpp.
bool Marble::OsmPlacemark::operator< | ( | const OsmPlacemark & | other | ) | const |
Placemarks are sorted by name by default.
Definition at line 94 of file OsmPlacemark.cpp.
bool Marble::OsmPlacemark::operator== | ( | const OsmPlacemark & | other | ) | const |
Definition at line 119 of file OsmPlacemark.cpp.
int Marble::OsmPlacemark::regionId | ( | ) | const |
Identifier of the smallest region containing this placemark, 0 if none (~main area).
Definition at line 53 of file OsmPlacemark.cpp.
void Marble::OsmPlacemark::setAdditionalInformation | ( | const QString & | name | ) |
Definition at line 68 of file OsmPlacemark.cpp.
void Marble::OsmPlacemark::setCategory | ( | OsmCategory | category | ) |
Definition at line 28 of file OsmPlacemark.cpp.
void Marble::OsmPlacemark::setHouseNumber | ( | const QString & | houseNumber | ) |
Definition at line 48 of file OsmPlacemark.cpp.
void Marble::OsmPlacemark::setLatitude | ( | qreal | latitude | ) |
Definition at line 88 of file OsmPlacemark.cpp.
void Marble::OsmPlacemark::setLongitude | ( | qreal | longitude | ) |
Definition at line 78 of file OsmPlacemark.cpp.
void Marble::OsmPlacemark::setName | ( | const QString & | name | ) |
Definition at line 38 of file OsmPlacemark.cpp.
void Marble::OsmPlacemark::setRegionId | ( | int | id | ) |
Definition at line 58 of file OsmPlacemark.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:46 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.