KOSMIndoorMap
mapitem.cpp
82 m_styleLoader = new MapCSSLoader(m_styleSheetUrl, KOSMIndoorMap::defaultNetworkAccessManagerFactory, this);
112 // the scale factor isn't automatically applied to the paint device, only to the input coordinates
115 m_view->setDeviceTransform(QTransform::fromScale(window()->devicePixelRatio(), window()->devicePixelRatio()));
208 connect(overlay.data(), &AbstractOverlaySource::update, this, &MapItem::overlayUpdate, Qt::UniqueConnection);
209 connect(overlay.data(), &AbstractOverlaySource::reset, this, &MapItem::overlayReset, Qt::UniqueConnection);
217void MapItem::addOverlaySource(std::vector<QPointer<AbstractOverlaySource>> &overlaySources, const QVariant &source)
void update()
Trigger map re-rendering when the source changes.
const SceneGraphItem * itemAt(QPointF pos, const SceneGraph &sg, const View *view) const
Highest (in z-order) item at the given screen position.
Definition hitdetector.cpp:19
Asynchronous loader for (remote) MapCSS assets.
Definition mapcssloader.h:24
bool hasError() const
Check whether loading or parsing failed in some way.
Definition mapcssloader.cpp:66
static QUrl resolve(const QString &style, const QUrl &baseUrl={})
Resolve style to an absolute URL to load.
Definition mapcssloader.cpp:89
void compile(OSM::DataSet &dataSet)
Optimizes style sheet rules for application against dataSet.
Definition mapcssstyle.cpp:76
bool hasError
There's a loading error (data not found, network issue, broken style sheet, etc).
Definition mapitem.h:40
QVariant overlaySources
Sources for overlays that should be rendered on top of the map.
Definition mapitem.h:47
Loader for OSM data for a single station or airport.
Definition maploader.h:29
void updateScene(SceneGraph &sg) const
Creates or updates sg based on the currently set style and view settings.
Definition scenecontroller.cpp:117
void update(Part *part, const QByteArray &data, qint64 dataSize)
OSM-based multi-floor indoor maps for buildings.
Definition locationqueryoverlayproxymodel.h:20
KOSMINDOORMAP_EXPORT QNetworkAccessManager * defaultNetworkAccessManagerFactory()
Default implementation if not using an application-specific QNetworkAccessManager instance.
Definition networkaccessmanagerfactory.cpp:15
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void deleteLater()
bool disconnect(const QMetaObject::Connection &connection)
T qobject_cast(QObject *object)
virtual void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry)
void update()
QQuickWindow * window() const const
QSizeF size() const const
QSize toSize() const const
void clear()
QString fromUtf8(QByteArrayView str)
bool isEmpty() const const
QByteArray toUtf8() const const
UniqueConnection
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
QTransform fromScale(qreal sx, qreal sy)
QString toString(FormattingOptions options) const const
bool canConvert() const const
T value() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:06:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:06:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.