KPublicTransport::PathSection
Public Types |
Properties |
Public Member Functions |
Static Public Member Functions |
List of all members
KPublicTransport::PathSection Class Reference
#include <path.h>
Public Types | |
enum | Maneuver { Move , Stairs , Elevator , Escalator } |
Properties | |
QString | description |
int | direction |
int | distance |
QPointF | endPoint |
int | floorLevelChange |
bool | hasStartFloorLevel |
QString | iconName |
Maneuver | maneuver |
QPolygonF | path |
int | startFloorLevel |
QPointF | startPoint |
Public Member Functions | |
int | direction () const |
int | distance () const |
QPointF | endPoint () const |
bool | hasStartFloorLevel () const |
QString | iconName () const |
QPointF | startPoint () const |
Static Public Member Functions | |
static std::vector< PathSection > | fromJson (const QJsonArray &array) |
static PathSection | fromJson (const QJsonObject &obj) |
static Q_INVOKABLE QString | maneuverIconName (KPublicTransport::PathSection::Maneuver maneuver) |
static QJsonObject | toJson (const PathSection §ion) |
static QJsonArray | toJson (const std::vector< PathSection > §ions) |
Detailed Description
A section of a Path.
A path section consists of a poly-line of geo-coordinates to follow, an initial maneuver instructions as well as additional properties for this part of the path, such as the floor level.
Member Enumeration Documentation
◆ Maneuver
Property Documentation
◆ description
|
readwrite |
◆ direction
|
read |
◆ distance
|
read |
◆ endPoint
|
read |
◆ floorLevelChange
|
readwrite |
◆ hasStartFloorLevel
|
read |
◆ iconName
|
read |
◆ maneuver
|
readwrite |
◆ path
|
readwrite |
◆ startFloorLevel
|
readwrite |
◆ startPoint
|
read |
Member Function Documentation
◆ direction()
|
nodiscard |
◆ distance()
|
nodiscard |
◆ endPoint()
|
nodiscard |
◆ fromJson() [1/2]
|
staticnodiscard |
◆ fromJson() [2/2]
|
staticnodiscard |
◆ hasStartFloorLevel()
◆ iconName()
◆ maneuverIconName()
|
staticnodiscard |
◆ startPoint()
|
nodiscard |
◆ toJson() [1/2]
|
staticnodiscard |
◆ toJson() [2/2]
|
staticnodiscard |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:57:19 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:57:19 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.