KOSMIndoorMap
roommodel.cpp
103 auto s = Localization::amenityType(type.trimmed().constData(), Localization::ReturnEmptyOnUnknownKey);
139 return QString::number(room.level/ 10); // TODO this could use localized floor level abbrevations
290 m_rooms.erase(std::unique(m_rooms.begin(), m_rooms.end(), [](const auto &lhs, const auto &rhs) {
294 // de-duplicate multi-level rooms that consist of multiple OSM elements (e.g. due to varying sizes per floor)
303 m_buildings.erase(std::remove_if(m_buildings.begin(), m_buildings.end(), [](const auto &b) { return b.roomCount == 0; }), m_buildings.end());
bool hasError() const
Returns true if an error occured during parsing and the returned style is invalid.
Definition mapcssparser.cpp:75
Result of MapCSS stylesheet evaluation for all layer selectors.
Definition mapcssresult.h:100
void evaluate(const MapCSSState &state, MapCSSResult &result) const
Evaluates the style sheet for a given state state (OSM element, view state, element state,...
Definition mapcssstyle.cpp:75
void compile(OSM::DataSet &dataSet)
Optimizes style sheet rules for application against dataSet.
Definition mapcssstyle.cpp:33
bool isEmpty() const
Returns true if this is a default-constructed or otherwise empty/invalud style.
Definition mapcssstyle.cpp:28
void initializeState(MapCSSState &state) const
Initializes the evaluation state.
Definition mapcssstyle.cpp:42
Q_INVOKABLE int findRoom(const QString &name) const
Tries to identify the given room name or number and returns the row index if found.
Definition roommodel.cpp:310
@ LevelShortNameRole
Name of the floor the room is on (short form, if available)
Definition roommodel.h:54
@ LevelLongNameRole
Name of the floor the room is on (long form, if available)
Definition roommodel.h:53
TagKey tagKey(const char *keyName) const
Look up a tag key for the given tag name, if it exists.
Definition datatypes.cpp:38
QString i18n(const char *text, const TYPE &arg...)
QString amenityType(const char *value, Localization::TranslationOption opt=Localization::ReturnUnknownKey)
Translated name for an amenity tag value (after list splitting).
Definition localization.cpp:18
OSM-based multi-floor indoor maps for buildings.
Definition locationqueryoverlayproxymodel.h:20
QStringView level(QStringView ifopt)
Low-level types and functions to work with raw OSM data as efficiently as possible.
Definition locationqueryoverlayproxymodel.h:15
void beginResetModel()
bool checkIndex(const QModelIndex &index, CheckIndexOptions options) const const
void endResetModel()
virtual QHash< int, QByteArray > roleNames() const const
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
void push_back(parameter_type value)
QString createSeparatedList(const QStringList &list) const const
int row() const const
Q_EMITQ_EMIT
QObject * parent() const const
QString fromUtf8(QByteArrayView str)
QString number(double n, char format, int precision)
QChar first() const const
CaseInsensitive
QTextStream & center(QTextStream &stream)
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
QVariant fromValue(T &&value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:55:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:55:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.