libosmscout
0.1
|
#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 More... | |
LocationEntry (const LocationInfo &info) | |
LocationEntry (const QString &label, const osmscout::GeoCoord &coord, QObject *parent=nullptr) | |
LocationEntry (LocationEntry &&other) | |
move constructor copies Qt ownership More... | |
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 More... | |
LocationEntry & | operator= (LocationEntry &&other) |
move assignment copies Qt ownership More... | |
~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 |
||
) |
osmscout::LocationEntry::LocationEntry | ( | const QString & | label, |
const osmscout::GeoCoord & | coord, | ||
QObject * | parent = nullptr |
||
) |
|
explicit |
References addReference().
|
explicit |
osmscout::LocationEntry::LocationEntry | ( | const LocationEntry & | other | ) |
copy constructor copies Qt ownership
osmscout::LocationEntry::LocationEntry | ( | LocationEntry && | other | ) |
move constructor copies Qt ownership
|
overridedefault |
void osmscout::LocationEntry::addReference | ( | const osmscout::ObjectFileRef | reference | ) |
References type.
Referenced by LocationEntry(), and mergeWith().
Q_INVOKABLE double osmscout::LocationEntry::distanceTo | ( | double | lat, |
double | lon | ||
) | const |
References osmscout::Distance::AsMeter(), osmscout::GetSphericalDistance(), lat, and lon.
QList< AdminRegionInfoRef > osmscout::LocationEntry::getAdminRegionList | ( | ) | const |
QString osmscout::LocationEntry::getAltName | ( | ) | const |
References altName.
osmscout::GeoBox osmscout::LocationEntry::getBBox | ( | ) | const |
Referenced by osmscout::MapWidget::showLocation().
osmscout::GeoCoord osmscout::LocationEntry::getCoord | ( | ) | const |
Referenced by osmscout::MapWidget::showLocation().
QString osmscout::LocationEntry::getDatabase | ( | ) | const |
QString osmscout::LocationEntry::getDebugString | ( | ) | const |
References osmscout::GeoCoord::GetDisplayText(), label, and type.
QString osmscout::LocationEntry::getLabel | ( | ) | const |
References label.
Referenced by osmscout::LookupModule::requestObjects().
double osmscout::LocationEntry::getLat | ( | ) | const |
References osmscout::GeoCoord::GetLat().
double osmscout::LocationEntry::getLon | ( | ) | const |
References osmscout::GeoCoord::GetLon().
QString osmscout::LocationEntry::getObjectType | ( | ) | const |
References objectType.
const QList< osmscout::ObjectFileRef > & osmscout::LocationEntry::getReferences | ( | ) | const |
LocationInfo::Type osmscout::LocationEntry::getType | ( | ) | const |
References type.
QString osmscout::LocationEntry::getTypeString | ( | ) | const |
References type.
void osmscout::LocationEntry::mergeWith | ( | const LocationEntry & | location | ) |
References addReference(), osmscout::GeoBox::GetCenter(), getReferences(), osmscout::GeoBox::Include(), and type.
LocationEntry & osmscout::LocationEntry::operator= | ( | const LocationEntry & | other | ) |
copy assignment, Qt ownership is not changed
References altName, label, objectType, and type.
LocationEntry & osmscout::LocationEntry::operator= | ( | LocationEntry && | other | ) |
move assignment copies Qt ownership
References altName, label, objectType, and type.
|
read |
Referenced by getAltName(), and operator=().
|
read |
Referenced by getDebugString(), getLabel(), and operator=().
|
read |
Referenced by distanceTo().
|
read |
Referenced by distanceTo().
|
read |
Referenced by getObjectType(), and operator=().
|
read |
Referenced by addReference(), getDebugString(), getType(), getTypeString(), mergeWith(), and operator=().