marble
LocalOsmSearchRunner.cpp
Go to the documentation of this file.
26 QMap<OsmPlacemark::OsmCategory, GeoDataFeature::GeoDataVisualCategory> LocalOsmSearchRunner::m_categoryMap;
28 LocalOsmSearchRunner::LocalOsmSearchRunner( const QStringList &databaseFiles, QObject *parent ) :
69 m_categoryMap[OsmPlacemark::TransportAirportTerminal] = GeoDataFeature::TransportAirportTerminal;
99 void LocalOsmSearchRunner::search( const QString &searchTerm, const GeoDataLatLonBox &preferred )
118 hit->setGeometry( new GeoDataPoint( placemark.longitude(), placemark.latitude(), 0.0, GeoDataCoordinates::Degree ) );
QVector< OsmPlacemark > find(const DatabaseQuery &userQuery)
Search the database for matching regions and placemarks.
Definition: OsmDatabase.cpp:79
Definition: OsmPlacemark.h:34
virtual void search(const QString &searchTerm, const GeoDataLatLonBox &preferred)
Start a placemark search.
Definition: LocalOsmSearchRunner.cpp:99
void setVisualCategory(GeoDataVisualCategory category)
Sets the symbol index of the placemark.
Definition: GeoDataFeature.cpp:770
A lightweight data structure to represent points of interest like addresses with support for serializ...
Definition: OsmPlacemark.h:24
LocalOsmSearchRunner(const QStringList &databaseFiles, QObject *parent=0)
Definition: LocalOsmSearchRunner.cpp:28
void searchFinished(QVector< GeoDataPlacemark * > result)
This is emitted to indicate that the runner has finished the placemark search.
Definition: OsmPlacemark.h:48
Definition: OsmPlacemark.h:39
void setName(const QString &value)
Set a new name for this feature.
Definition: GeoDataFeature.cpp:549
bool isEmpty() const
Definition: OsmPlacemark.h:49
qreal latitude() const
Latitude of the placemark's center point, in degree.
Definition: OsmPlacemark.cpp:83
const MarbleModel * model() const
Access to the currently used model, or null if no was set with.
Definition: SearchRunner.cpp:25
~LocalOsmSearchRunner()
Definition: LocalOsmSearchRunner.cpp:94
Definition: OsmPlacemark.h:41
Definition: OsmPlacemark.h:43
qreal longitude() const
Longitude of the placemark's center point, in degree.
Definition: OsmPlacemark.cpp:73
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
Definition: SearchRunner.h:30
A class that defines a 2D bounding box for geographic data.
Definition: GeoDataLatLonBox.h:51
void setGeometry(GeoDataGeometry *entry)
Sets the current Geometry of this Placemark.
Definition: GeoDataPlacemark.cpp:230
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.