KPublicTransport
platformlayout.cpp
22static void addPlatformSectionsForVehicleSections(std::vector<QString> §ions, const Stopover &stopover, const VehicleSection &coach)
27 if (s.name().isEmpty() || s.begin() > coach.platformPositionEnd() || s.end() < coach.platformPositionBegin()) {
95QString PlatformLayout::sectionsForVehicleSection(const Stopover &stopover, const QString &coachName)
static QString sectionsForVehicleSection(const Stopover &stopover, const QString &coachName)
Returns all platform sections the coach coachName stops at.
Definition platformlayout.cpp:95
static QString sectionsForClass(const Stopover &stopover, VehicleSection::Class cls)
Returns all platform sections the given vehicle has coaches of class @cls at.
Definition platformlayout.cpp:83
static QString sectionsForVehicle(const Stopover &stopover)
Returns all platform sections the given vehicle has coaches stopping at.
Definition platformlayout.cpp:70
Information about an arrival and/or departure of a vehicle at a stop area.
Definition stopover.h:26
KPublicTransport::Vehicle vehicleLayout
Vehicle coach layout information at this stopover.
Definition stopover.h:77
QString name
Human readable identifier of this section, typically the coach number.
Definition vehicle.h:31
QString platformSectionName
Name of the platform section(s) this coach is position in.
Definition vehicle.h:115
float platformPositionBegin
Relative position [0-1] of the begin of this vehicle section on the platform.
Definition vehicle.h:36
float platformPositionEnd
Relative position [0-1] of the end of this vehicle section on the platform.
Definition vehicle.h:40
Query operations and data types for accessing realtime public transport information from online servi...
Definition attribution.cpp:16
void push_back(parameter_type value)
bool isEmpty() const const
QString join(QChar separator) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:52 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:07:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.