KOSMIndoorMap::Platform
#include <platform.h>
Public Types | |
enum | Mode { Unknown , Rail , LightRail , Subway , Tram , Monorail , Bus } |
Properties | |
QString | ifopt |
Mode | mode |
QString | name |
Public Member Functions | |
Platform (const Platform &) | |
Platform (Platform &&) | |
OSM::Element | area () const |
OSM::Element | edge () const |
bool | hasLevel () const |
QString | ifopt () const |
bool | isValid () const |
int | level () const |
QStringList | lines () const |
Mode | mode () const |
QString | name () const |
Platform & | operator= (const Platform &) |
Platform & | operator= (Platform &&) |
OSM::Coordinate | position () const |
const std::vector< PlatformSection > & | sections () const |
void | setArea (OSM::Element area) |
void | setEdge (OSM::Element edge) |
void | setIfopt (const QString &ifopt) |
void | setLevel (int level) |
void | setLines (QStringList &&lines) |
void | setMode (Mode mode) |
void | setName (const QString &name) |
void | setSections (std::vector< PlatformSection > &§ions) |
void | setStopPoint (OSM::Element stop) |
void | setTrack (std::vector< OSM::Element > &&track) |
OSM::Element | stopPoint () const |
QStringList && | takeLines () |
std::vector< PlatformSection > && | takeSections () |
std::vector< OSM::Element > && | takeTrack () |
const std::vector< OSM::Element > & | track () const |
Static Public Member Functions | |
static bool | isPlausibleName (const QString &name) |
static bool | isSame (const Platform &lhs, const Platform &rhs, const OSM::DataSet &dataSet) |
static Platform | merge (const Platform &lhs, const Platform &rhs, const OSM::DataSet &dataSet) |
static QString | preferredName (const QString &lhs, const QString &rhs) |
Detailed Description
A railway platform/track.
Definition at line 56 of file platform.h.
Member Enumeration Documentation
◆ Mode
Transportation mode served by a platform.
Definition at line 109 of file platform.h.
Property Documentation
◆ ifopt
|
readwrite |
Definition at line 60 of file platform.h.
◆ mode
|
readwrite |
Definition at line 59 of file platform.h.
◆ name
|
readwrite |
Definition at line 58 of file platform.h.
Constructor & Destructor Documentation
◆ Platform()
|
explicit |
Definition at line 87 of file platform.cpp.
Member Function Documentation
◆ area()
OSM::Element Platform::area | ( | ) | const |
The platform area.
This is often shared between multiple tracks.
Definition at line 157 of file platform.cpp.
◆ edge()
OSM::Element Platform::edge | ( | ) | const |
The platform edge path.
Definition at line 146 of file platform.cpp.
◆ hasLevel()
bool Platform::hasLevel | ( | ) | const |
Definition at line 119 of file platform.cpp.
◆ ifopt()
QString Platform::ifopt | ( | ) | const |
IFOPT identifier.
Definition at line 213 of file platform.cpp.
◆ isPlausibleName()
|
static |
Checks if name
is a plausible name for a platform.
Definition at line 541 of file platform.cpp.
◆ isSame()
|
static |
Checks if two instances refer to the same platform.
Definition at line 368 of file platform.cpp.
◆ isValid()
bool Platform::isValid | ( | ) | const |
Platform has enough data to work with.
Definition at line 98 of file platform.cpp.
◆ level()
int Platform::level | ( | ) | const |
Floor level.
Definition at line 114 of file platform.cpp.
◆ lines()
QStringList Platform::lines | ( | ) | const |
Names of public transport lines stopping at this platform.
Definition at line 224 of file platform.cpp.
◆ merge()
|
static |
Merge two platform objects.
Definition at line 487 of file platform.cpp.
◆ mode()
Platform::Mode Platform::mode | ( | ) | const |
Definition at line 202 of file platform.cpp.
◆ name()
QString Platform::name | ( | ) | const |
User-visible name of the platform.
Definition at line 103 of file platform.cpp.
◆ position()
OSM::Coordinate Platform::position | ( | ) | const |
A singular position for this platform (typically the stop position).
This can be useful for positining views or labels.
Definition at line 130 of file platform.cpp.
◆ preferredName()
Returns the preferred platform name given two possible alternatives.
Definition at line 547 of file platform.cpp.
◆ sections()
const std::vector< PlatformSection > & Platform::sections | ( | ) | const |
Platform sections.
Definition at line 185 of file platform.cpp.
◆ setArea()
void Platform::setArea | ( | OSM::Element | area | ) |
Definition at line 162 of file platform.cpp.
◆ setEdge()
void Platform::setEdge | ( | OSM::Element | edge | ) |
Definition at line 151 of file platform.cpp.
◆ setIfopt()
void Platform::setIfopt | ( | const QString & | ifopt | ) |
Definition at line 218 of file platform.cpp.
◆ setLevel()
void Platform::setLevel | ( | int | level | ) |
Definition at line 124 of file platform.cpp.
◆ setLines()
void Platform::setLines | ( | QStringList && | lines | ) |
Definition at line 229 of file platform.cpp.
◆ setMode()
void Platform::setMode | ( | Platform::Mode | mode | ) |
Definition at line 207 of file platform.cpp.
◆ setName()
void Platform::setName | ( | const QString & | name | ) |
Definition at line 108 of file platform.cpp.
◆ setSections()
void Platform::setSections | ( | std::vector< PlatformSection > && | sections | ) |
Definition at line 190 of file platform.cpp.
◆ setStopPoint()
void Platform::setStopPoint | ( | OSM::Element | stop | ) |
Definition at line 140 of file platform.cpp.
◆ setTrack()
void Platform::setTrack | ( | std::vector< OSM::Element > && | track | ) |
Definition at line 173 of file platform.cpp.
◆ stopPoint()
OSM::Element Platform::stopPoint | ( | ) | const |
Definition at line 135 of file platform.cpp.
◆ takeLines()
QStringList && Platform::takeLines | ( | ) |
Definition at line 235 of file platform.cpp.
◆ takeSections()
std::vector< PlatformSection > && Platform::takeSections | ( | ) |
Definition at line 196 of file platform.cpp.
◆ takeTrack()
std::vector< OSM::Element > && Platform::takeTrack | ( | ) |
Definition at line 179 of file platform.cpp.
◆ track()
const std::vector< OSM::Element > & Platform::track | ( | ) | const |
The (railway) track this platform is serving.
Definition at line 168 of file platform.cpp.
The documentation for this class was generated from the following files:
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.