marble
Search.cpp
Go to the documentation of this file.
120 QVariant position = m_searchResult->data( m_searchResult->index( iter.key() ), Marble::MarblePlacemarkModel::CoordinateRole );
122 bool const visible = onEarth && m_marbleWidget->viewport()->screenCoordinates( coordinates.longitude( Marble::GeoDataCoordinates::Radian ),
179 QVariant data = m_searchResult->index( i, 0 ).data( Marble::MarblePlacemarkModel::CoordinateRole );
void setContextProperty(const QString &name, QObject *value)
This class represents a model of all place marks which are currently available through a given Placem...
Definition: MarblePlacemarkModel.h:37
void placemarkDelegateChanged()
void findPlacemarks(const QString &searchTerm, const GeoDataLatLonBox &preferred=GeoDataLatLonBox())
Search for placemarks matching the given search term.
Definition: SearchRunnerManager.cpp:157
QList< T > values() const
void setParentItem(QGraphicsItem *newParent)
This file contains the headers for MarbleModel.
const Marble::ViewportParams * viewport() const
Definition: MarbleDeclarativeWidget.cpp:91
QDeclarativeComponent * placemarkDelegate()
const QHash< int, QByteArray > & roleNames() const
const_iterator constBegin() const
void setPlacemarkDelegate(QDeclarativeComponent *delegate)
Definition: Search.cpp:55
T value() const
void centerOn(const Marble::GeoDataLatLonBox &bbox)
Definition: MarbleDeclarativeWidget.cpp:262
qreal latitude(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
retrieves the latitude of the GeoDataCoordinates object use the unit parameter to switch between Radi...
Definition: GeoDataCoordinates.cpp:751
void clear()
MarbleWidget * map()
const_iterator constEnd() const
bool isNull() const
void mapChanged()
virtual QObject * create(QDeclarativeContext *context)
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
const_iterator constEnd() const
QVariant data(const QModelIndex &index, int role) const
Return the data according to the index.
Definition: MarblePlacemarkModel.cpp:97
bool screenCoordinates(const qreal lon, const qreal lat, qreal &x, qreal &y) const
Get the screen coordinates corresponding to geographical coordinates in the map.
Definition: ViewportParams.cpp:357
static GeoDataLatLonBox fromLineString(const GeoDataLineString &lineString)
Create the smallest bounding box from a line string.
Definition: GeoDataLatLonBox.cpp:620
A LineString that allows to store a contiguous set of line segments.
Definition: GeoDataLineString.h:75
int rowCount(const QModelIndex &parent=QModelIndex()) const
Return the number of Placemarks in the Model.
Definition: MarblePlacemarkModel.cpp:74
qreal longitude(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
retrieves the longitude of the GeoDataCoordinates object use the unit parameter to switch between Rad...
Definition: GeoDataCoordinates.cpp:739
This file contains the headers for ViewportParams.
The GeoDataCoordinates coordinate.
Definition: MarblePlacemarkModel.h:53
const_iterator constBegin() const
QVariant data(int role) const
void setX(qreal x)
void setY(qreal y)
void setVisible(bool visible)
void searchFinished()
The last search triggered by search() is finished and can be retrieved using.
Wraps a Marble::MarbleWidget, providing access to important properties and methods.
Definition: MarbleDeclarativeWidget.h:50
TransformOrigin transformOrigin() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 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:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.