KOSMIndoorMap
mapitem.cpp
78 styleFile = styleSheet.contains(QLatin1Char(':')) ? QUrl::fromUserInput(styleSheet).toLocalFile() : styleSheet;
87 const QString f = searchPath + QLatin1String("/org.kde.kosmindoormap/assets/css/") + styleSheet + QLatin1String(".mapcss");
132 // the scale factor isn't automatically applied to the paint device, only to the input coordinates
135 m_view->setDeviceTransform(QTransform::fromScale(window()->devicePixelRatio(), window()->devicePixelRatio()));
228 connect(overlay.data(), &AbstractOverlaySource::update, this, &MapItem::overlayUpdate, Qt::UniqueConnection);
229 connect(overlay.data(), &AbstractOverlaySource::reset, this, &MapItem::overlayReset, Qt::UniqueConnection);
237void 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
void compile(const OSM::DataSet &dataSet)
Optimizes style sheet rules for application against dataSet.
Definition mapcssstyle.cpp:33
bool hasError
There's a loading error (data not found, network issue, broken style sheet, etc).
Definition mapitem.h:39
QVariant overlaySources
Sources for overlays that should be rendered on top of the map.
Definition mapitem.h:46
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:112
void update(Part *part, const QByteArray &data, qint64 dataSize)
OSM-based multi-floor indoor maps for buildings.
Definition locationqueryoverlayproxymodel.h:20
bool exists() const const
QPalette palette()
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
virtual void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry)
void update()
QQuickWindow * window() const const
QSizeF size() const const
QSize toSize() const const
GenericDataLocation
QStringList standardLocations(StandardLocation type)
void clear()
bool contains(QChar ch, Qt::CaseSensitivity cs) const const
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)
QUrl fromUserInput(const QString &userInput, const QString &workingDirectory, UserInputResolutionOptions options)
QString toLocalFile() 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 Tue Mar 26 2024 11:20:03 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:20:03 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.