KPublicTransport::VehicleSection

Search for usage in LXR

KPublicTransport::VehicleSection Class Reference

#include <vehicle.h>

Properties

Classes classes
 
Sides connectedSides
 
int deckCount
 
KPublicTransport::Disruption::Effect disruptionEffect
 
QString iconName
 
KPublicTransport::Load::Category load
 
QString name
 
float platformPositionBegin
 
float platformPositionEnd
 
QString platformSectionName
 
std::vector< KPublicTransport::FeaturesectionFeatures
 
Type type
 

Detailed Description

Information about a part of a vehicle.

This typically describes a coach of a train.

See also
Vehicle

Definition at line 24 of file vehicle.h.

Property Documentation

◆ classes

Classes KPublicTransport::VehicleSection::classes
readwrite

Classes available in this vehicle section.

Can be more than one.

Definition at line 70 of file vehicle.h.

◆ connectedSides

Sides KPublicTransport::VehicleSection::connectedSides
readwrite

Sides on which this vehicle section is connected to neighboring sections in a way that passengers can move between those sections.

This matters for example for a double segment train with to control cars in the middle of its full layout.

Definition at line 102 of file vehicle.h.

◆ deckCount

int KPublicTransport::VehicleSection::deckCount
readwrite

Number of decks in this vehicle section.

Definition at line 85 of file vehicle.h.

◆ disruptionEffect

KPublicTransport::Disruption::Effect KPublicTransport::VehicleSection::disruptionEffect
readwrite

Distruption affecting this coach.

Disruption::NoService here means the coach is closed.

Definition at line 107 of file vehicle.h.

◆ iconName

QString KPublicTransport::VehicleSection::iconName
read

A suitable icon representing the coach.

Can be a qrc: URL, an XDG icon name or empty.

Since
24.08

Definition at line 130 of file vehicle.h.

◆ load

KPublicTransport::Load::Category KPublicTransport::VehicleSection::load
readwrite

Occupancy level for this coach.

Definition at line 110 of file vehicle.h.

◆ name

QString KPublicTransport::VehicleSection::name
readwrite

Human readable identifier of this section, typically the coach number.

Can be empty for sections closed to passengers, such as train engines.

Definition at line 31 of file vehicle.h.

◆ platformPositionBegin

float KPublicTransport::VehicleSection::platformPositionBegin
readwrite

Relative position [0-1] of the begin of this vehicle section on the platform.

0 representing the begin of the platform in platform coordinate (

See also
Platform), 1 being the opposite end.

Definition at line 36 of file vehicle.h.

◆ platformPositionEnd

float KPublicTransport::VehicleSection::platformPositionEnd
readwrite

Relative position [0-1] of the end of this vehicle section on the platform.

0 representing the begin of the platform in platform coordinate (

See also
Platform), 1 being the opposite end.

Definition at line 40 of file vehicle.h.

◆ platformSectionName

QString KPublicTransport::VehicleSection::platformSectionName
readwrite

Name of the platform section(s) this coach is position in.

This is primarily meant as a fallback when exact platform positions aren't available.

Definition at line 115 of file vehicle.h.

◆ sectionFeatures

std::vector<KPublicTransport::Feature> KPublicTransport::VehicleSection::sectionFeatures
read

Features of this section, for consumption by QML.

Definition at line 73 of file vehicle.h.

◆ type

Type KPublicTransport::VehicleSection::type
readwrite

Type of this vehicle section.

Definition at line 56 of file vehicle.h.


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 Sat Dec 21 2024 16:59:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.