KPublicTransport::Path
KPublicTransport::Path Class Reference
#include <path.h>
Properties | |
int | distance |
QPointF | endPoint |
int | sectionCount |
std::vector< KPublicTransport::PathSection > | sections |
QPointF | startPoint |
Public Member Functions | |
int | distance () const |
QPointF | endPoint () const |
bool | isEmpty () const |
const std::vector< PathSection > & | sections () const |
void | setSections (std::vector< PathSection > &§ions) |
QPointF | startPoint () const |
std::vector< PathSection > && | takeSections () |
Static Public Member Functions | |
static Path | fromJson (const QJsonObject &obj) |
static QJsonObject | toJson (const Path &path) |
Detailed Description
A path followed by any kind of location change.
This can be the way a train or bus takes, routing instructions for taking a rental vehicle, or instructions for transferring at a train station.
A path consists of one or more PathSection.
Property Documentation
◆ distance
|
read |
◆ endPoint
|
read |
◆ sectionCount
|
read |
◆ sections
|
read |
◆ startPoint
|
read |
Member Function Documentation
◆ distance()
|
nodiscard |
◆ endPoint()
|
nodiscard |
◆ fromJson()
|
staticnodiscard |
◆ isEmpty()
|
nodiscard |
◆ sections()
|
nodiscard |
◆ setSections()
void Path::setSections | ( | std::vector< PathSection > && | sections | ) |
◆ startPoint()
|
nodiscard |
◆ takeSections()
|
nodiscard |
◆ toJson()
|
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 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.