KPublicTransport::VehicleSection

Search for usage in LXR

KPublicTransport::VehicleSection Class Reference

#include <vehicle.h>

Properties

Classes classes
 
Sides connectedSides
 
int deckCount
 
QVariantList featureList
 
Features features
 
QString name
 
float platformPositionBegin
 
float platformPositionEnd
 
QString platformSectionName
 
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 22 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 68 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 108 of file vehicle.h.

◆ deckCount

int KPublicTransport::VehicleSection::deckCount
readwrite

Number of decks in this vehicle section.

Definition at line 91 of file vehicle.h.

◆ featureList

QVariantList KPublicTransport::VehicleSection::featureList
read

Feature flag as a variant list, for consumption in QML.

Definition at line 88 of file vehicle.h.

◆ features

Features KPublicTransport::VehicleSection::features
readwrite

Features available in this vehicle section.

Can be more than one.

Definition at line 86 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 29 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 34 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 38 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 113 of file vehicle.h.

◆ type

Type KPublicTransport::VehicleSection::type
readwrite

Type of this vehicle section.

Definition at line 54 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 Tue Mar 26 2024 11:13:06 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.