|
libosmscout 0.1
|
Qt abstraction for various objects on map, used for search and routing. More...
#include <LocationEntry.h>
Public Member Functions | |
| void | addReference (const osmscout::ObjectFileRef reference) |
| Q_INVOKABLE double | distanceTo (double lat, double lon) const |
| QList< AdminRegionInfoRef > | getAdminRegionList () const |
| QString | getAltName () const |
| osmscout::GeoBox | getBBox () const |
| osmscout::GeoCoord | getCoord () const |
| QString | getDatabase () const |
| QString | getDebugString () const |
| QString | getLabel () const |
| double | getLat () const |
| double | getLon () const |
| QString | getObjectType () const |
| const QList< osmscout::ObjectFileRef > & | getReferences () const |
| LocationInfo::Type | getType () const |
| QString | getTypeString () const |
| LocationEntry (const LocationEntry &other) | |
| copy constructor copies Qt ownership | |
| LocationEntry (const LocationInfo &info) | |
| LocationEntry (const QString &label, const osmscout::GeoCoord &coord, QObject *parent=nullptr) | |
| LocationEntry (LocationEntry &&other) | |
| move constructor copies Qt ownership | |
| LocationEntry (LocationInfo::Type type, const QString &label, const QString &altName, const QString &objectType, const QList< AdminRegionInfoRef > &adminRegionList, const QString database, const osmscout::GeoCoord coord, const osmscout::GeoBox bbox, QObject *parent=nullptr) | |
| LocationEntry (QObject *parent=nullptr) | |
| void | mergeWith (const LocationEntry &location) |
| LocationEntry & | operator= (const LocationEntry &other) |
| copy assignment, Qt ownership is not changed | |
| LocationEntry & | operator= (LocationEntry &&other) |
| move assignment copies Qt ownership | |
| ~LocationEntry () override=default | |
Properties | |
| QString | altName |
| QString | label |
| double | lat |
| double | lon |
| QString | objectType |
| QString | type |
Qt abstraction for various objects on map, used for search and routing.
| osmscout::LocationEntry::LocationEntry | ( | LocationInfo::Type | type, |
| const QString & | label, | ||
| const QString & | altName, | ||
| const QString & | objectType, | ||
| const QList< AdminRegionInfoRef > & | adminRegionList, | ||
| const QString | database, | ||
| const osmscout::GeoCoord | coord, | ||
| const osmscout::GeoBox | bbox, | ||
| QObject * | parent = nullptr ) |
References altName, label, objectType, and type.
Referenced by LocationEntry(), LocationEntry(), LocationEntry(), mergeWith(), operator=(), operator=(), and ~LocationEntry().
| osmscout::LocationEntry::LocationEntry | ( | const QString & | label, |
| const osmscout::GeoCoord & | coord, | ||
| QObject * | parent = nullptr ) |
|
explicit |
References altName, label, LocationEntry(), objectType, type, and osmscout::vectorToQList().
|
explicit |
References type.
| osmscout::LocationEntry::LocationEntry | ( | const LocationEntry & | other | ) |
copy constructor copies Qt ownership
References altName, label, LocationEntry(), objectType, and type.
| osmscout::LocationEntry::LocationEntry | ( | LocationEntry && | other | ) |
move constructor copies Qt ownership
References altName, label, LocationEntry(), objectType, and type.
|
overridedefault |
| void osmscout::LocationEntry::addReference | ( | const osmscout::ObjectFileRef | reference | ) |
References type.
Referenced by mergeWith(), and ~LocationEntry().
| Q_INVOKABLE double osmscout::LocationEntry::distanceTo | ( | double | lat, |
| double | lon ) const |
References osmscout::Distance::AsMeter(), osmscout::GetSphericalDistance(), lat, and lon.
Referenced by ~LocationEntry().
| QList< AdminRegionInfoRef > osmscout::LocationEntry::getAdminRegionList | ( | ) | const |
Referenced by ~LocationEntry().
| QString osmscout::LocationEntry::getAltName | ( | ) | const |
References altName.
Referenced by ~LocationEntry().
| osmscout::GeoBox osmscout::LocationEntry::getBBox | ( | ) | const |
Referenced by osmscout::MapWidget::showLocation(), and ~LocationEntry().
| osmscout::GeoCoord osmscout::LocationEntry::getCoord | ( | ) | const |
Referenced by osmscout::MapWidget::showLocation(), and ~LocationEntry().
| QString osmscout::LocationEntry::getDatabase | ( | ) | const |
| QString osmscout::LocationEntry::getDebugString | ( | ) | const |
Referenced by ~LocationEntry().
| QString osmscout::LocationEntry::getLabel | ( | ) | const |
References label.
Referenced by osmscout::LookupModule::requestObjects(), and ~LocationEntry().
| double osmscout::LocationEntry::getLat | ( | ) | const |
Referenced by ~LocationEntry().
| double osmscout::LocationEntry::getLon | ( | ) | const |
Referenced by ~LocationEntry().
| QString osmscout::LocationEntry::getObjectType | ( | ) | const |
References objectType.
Referenced by ~LocationEntry().
| const QList< osmscout::ObjectFileRef > & osmscout::LocationEntry::getReferences | ( | ) | const |
| LocationInfo::Type osmscout::LocationEntry::getType | ( | ) | const |
References type.
Referenced by ~LocationEntry().
| QString osmscout::LocationEntry::getTypeString | ( | ) | const |
References type.
Referenced by ~LocationEntry().
| void osmscout::LocationEntry::mergeWith | ( | const LocationEntry & | location | ) |
References addReference(), getReferences(), LocationEntry(), and type.
Referenced by ~LocationEntry().
| LocationEntry & osmscout::LocationEntry::operator= | ( | const LocationEntry & | other | ) |
copy assignment, Qt ownership is not changed
References altName, label, LocationEntry(), objectType, and type.
| LocationEntry & osmscout::LocationEntry::operator= | ( | LocationEntry && | other | ) |
move assignment copies Qt ownership
References altName, label, LocationEntry(), objectType, and type.
|
read |
Referenced by getAltName(), LocationEntry(), LocationEntry(), LocationEntry(), LocationEntry(), operator=(), and operator=().
|
read |
Referenced by getDebugString(), getLabel(), LocationEntry(), LocationEntry(), LocationEntry(), LocationEntry(), LocationEntry(), operator=(), and operator=().
|
read |
Referenced by distanceTo(), and ~LocationEntry().
|
read |
Referenced by distanceTo(), and ~LocationEntry().
|
read |
Referenced by getObjectType(), LocationEntry(), LocationEntry(), LocationEntry(), LocationEntry(), operator=(), and operator=().
|
read |