7#ifndef KOSMINDOORMAP_GATEMODEL_H
8#define KOSMINDOORMAP_GATEMODEL_H
10#include "kosmindoormap_export.h"
12#include <KOSMIndoorMap/MapData>
14#include <KOSM/Element>
16#include <QAbstractListModel>
37 Q_PROPERTY(
bool isEmpty READ isEmpty NOTIFY mapDataChanged)
40 Q_PROPERTY(
int arrivalGateRow READ arrivalGateRow NOTIFY gateIndexChanged)
41 Q_PROPERTY(
int departureGateRow READ departureGateRow NOTIFY gateIndexChanged)
47 void setMapData(const
MapData &data);
61 int rowCount(
const QModelIndex &parent = {})
const override;
66 Q_INVOKABLE
void setArrivalGate(
const QString &name);
67 Q_INVOKABLE
void setDepartureGate(
const QString &name);
69 int arrivalGateRow()
const;
70 int departureGateRow()
const;
73 void mapDataChanged();
74 void gateIndexChanged();
79 int matchGate(
const QString &name)
const;
80 void setGateTag(
int idx,
OSM::TagKey key,
bool enabled);
82 std::vector<Gate> m_gates;
92 int m_arrivalGateRow = -1;
93 int m_departureGateRow = -1;
Lists all airport gates found in the current map.
Raw OSM map data, separated by levels.
A reference to any of OSM::Node/OSM::Way/OSM::Relation.
OSM-based multi-floor indoor maps for buildings.
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
KDE's Doxygen guidelines are available online.