Marble
GeoGraphicsScene.cpp
41 QMultiHash<const GeoDataFeature *, TileId> m_features; // multi hash because multi track and multi geometry insert multiple items
46 static GeoDataStyle::Ptr highlightStyle(const GeoDataDocument *document, const GeoDataStyleMap &styleMap);
52GeoDataStyle::Ptr GeoGraphicsScenePrivate::highlightStyle(const GeoDataDocument *document, const GeoDataStyleMap &styleMap)
70void GeoGraphicsScenePrivate::applyHighlightStyle(GeoGraphicsItem *item, const GeoDataStyle::Ptr &highlightStyle)
87QList<GeoGraphicsItem *> GeoGraphicsScene::items(const GeoDataLatLonBox &box, int zoomLevel) const
181 for (auto tileIter = d->m_features.find(placemark); tileIter != d->m_features.end() && tileIter.key() == placemark; ++tileIter) {
261 if (TileId::fromCoordinates(GeoDataCoordinates(west, north, 0), zoomLevel) == TileId::fromCoordinates(GeoDataCoordinates(east, south, 0), zoomLevel))
265 const TileId key = TileId::fromCoordinates(GeoDataCoordinates(west, north, 0), zoomLevel); // same as GeoDataCoordinates(east, south, 0), see above
A class that defines a 2D bounding box for geographic data.
Definition GeoDataLatLonBox.h:45
qreal north(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the northern boundary of the bounding box.
Definition GeoDataLatLonBox.cpp:80
qreal east(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the eastern boundary of the bounding box.
Definition GeoDataLatLonBox.cpp:122
qreal west(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the western boundary of the bounding box.
Definition GeoDataLatLonBox.cpp:143
qreal south(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the southern boundary of the bounding box.
Definition GeoDataLatLonBox.cpp:101
a class representing a point of interest on the map
Definition GeoDataPlacemark.h:47
QList< GeoGraphicsItem * > items(const GeoDataLatLonBox &box, int maxZoomLevel) const
Get the list of items in the specified Box.
Definition GeoGraphicsScene.cpp:87
void applyHighlight(const QList< GeoDataPlacemark * > &)
Definition GeoGraphicsScene.cpp:162
QList< GeoGraphicsItem * > selectedItems() const
Get the list of items which belong to a placemark that has been clicked.
Definition GeoGraphicsScene.cpp:147
void removeItem(const GeoDataFeature *feature)
Remove all concerned items from the GeoGraphicsScene Removes all items which are associated with obje...
Definition GeoGraphicsScene.cpp:228
void addItem(GeoGraphicsItem *item)
Add an item to the GeoGraphicsScene Adds the item item to the GeoGraphicsScene.
Definition GeoGraphicsScene.cpp:254
GeoGraphicsScene(QObject *parent=nullptr)
Creates a new instance of GeoGraphicsScene.
Definition GeoGraphicsScene.cpp:76
Binds a QML item to a specific geodetic location in screen coordinates.
Definition AbstractDataPlugin.cpp:23
T * geodata_cast(GeoDataObject *node)
Returns the given node cast to type T if the node was instantiated as type T; otherwise returns 0.
Definition GeoDataObject.h:103
void append(QList< T > &&value)
void clear()
void push_back(parameter_type value)
Q_EMITQ_EMIT
QObject * parent() const const
void getCoords(int *x1, int *y1, int *x2, int *y2) const const
void setBottom(int y)
void setLeft(int x)
void setRight(int x)
void setTop(int y)
bool isEmpty() const const
QString & remove(QChar ch, Qt::CaseSensitivity cs)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.