Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
VClassIcons.cpp
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2001-2026 German Aerospace Center (DLR) and others.
4// This program and the accompanying materials are made available under the
5// terms of the Eclipse Public License 2.0 which is available at
6// https://www.eclipse.org/legal/epl-2.0/
7// This Source Code may also be made available under the following Secondary
8// Licenses when the conditions for such availability set forth in the Eclipse
9// Public License 2.0 are satisfied: GNU General Public License, version 2
10// or later which is available at
11// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13/****************************************************************************/
19// Function that returns the icon for a certain vClass
20/****************************************************************************/
21#include <config.h>
22
27
28#include "VClassIcons.h"
29
30
31// ===========================================================================
32// member method definitions
33// ===========================================================================
34
35FXIcon*
37 switch (vc) {
38 case SVC_IGNORING:
40 case SVC_PRIVATE:
42 case SVC_EMERGENCY:
44 case SVC_AUTHORITY:
46 case SVC_ARMY:
48 case SVC_VIP:
50 case SVC_PEDESTRIAN:
52 case SVC_PASSENGER:
54 case SVC_HOV:
56 case SVC_TAXI:
58 case SVC_BUS:
60 case SVC_COACH:
62 case SVC_DELIVERY:
64 case SVC_TRUCK:
66 case SVC_TRAILER:
68 case SVC_MOTORCYCLE:
70 case SVC_MOPED:
72 case SVC_BICYCLE:
74 case SVC_E_VEHICLE:
76 case SVC_TRAM:
78 case SVC_RAIL_URBAN:
80 case SVC_RAIL:
84 case SVC_RAIL_FAST:
86 case SVC_SHIP:
88 case SVC_CONTAINER:
90 case SVC_CABLE_CAR:
92 case SVC_SUBWAY:
94 case SVC_AIRCRAFT:
96 case SVC_WHEELCHAIR:
98 case SVC_SCOOTER:
100 case SVC_DRONE:
102 case SVC_CUSTOM1:
104 case SVC_CUSTOM2:
106 default:
107 throw ProcessError(TL("Invalid vClass"));
108 }
109}
110
111
112/****************************************************************************/
@ VCLASS_SMALL_TRUCK
@ VCLASS_SMALL_EMERGENCY
@ VCLASS_SMALL_CABLE_CAR
@ VCLASS_SMALL_COACH
@ VCLASS_SMALL_TAXI
@ VCLASS_SMALL_CUSTOM1
@ VCLASS_SMALL_CONTAINER
@ VCLASS_SMALL_PASSENGER
@ VCLASS_SMALL_SCOOTER
@ VCLASS_SMALL_RAIL_FAST
@ VCLASS_SMALL_ARMY
@ VCLASS_SMALL_RAIL_URBAN
@ VCLASS_SMALL_BUS
@ VCLASS_SMALL_AUTHORITY
@ VCLASS_SMALL_CUSTOM2
@ VCLASS_SMALL_DRONE
@ VCLASS_SMALL_AIRCRAFT
@ VCLASS_SMALL_VIP
@ VCLASS_SMALL_MOPED
@ VCLASS_SMALL_PRIVATE
@ VCLASS_SMALL_EVEHICLE
@ VCLASS_SMALL_SUBWAY
@ VCLASS_SMALL_SHIP
@ VCLASS_SMALL_BICYCLE
@ VCLASS_SMALL_RAIL
@ VCLASS_SMALL_WHEELCHAIR
@ VCLASS_SMALL_TRAM
@ VCLASS_SMALL_IGNORING
@ VCLASS_SMALL_DELIVERY
@ VCLASS_SMALL_HOV
@ VCLASS_SMALL_RAIL_ELECTRIC
@ VCLASS_SMALL_MOTORCYCLE
@ VCLASS_SMALL_TRAILER
@ VCLASS_SMALL_PEDESTRIAN
#define TL(string)
Definition MsgHandler.h:304
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
@ SVC_SHIP
is an arbitrary ship
@ SVC_PRIVATE
private vehicles
@ SVC_VIP
vip vehicles
@ SVC_HOV
vehicle is a HOV
@ SVC_TRUCK
vehicle is a large transport vehicle
@ SVC_IGNORING
vehicles ignoring classes
@ SVC_CUSTOM2
is a user-defined type
@ SVC_WHEELCHAIR
@ SVC_RAIL
vehicle is a not electrified rail
@ SVC_COACH
vehicle is a coach
@ SVC_CABLE_CAR
@ SVC_PASSENGER
vehicle is a passenger car (a "normal" car)
@ SVC_BICYCLE
vehicle is a bicycle
@ SVC_CONTAINER
@ SVC_SCOOTER
@ SVC_RAIL_FAST
vehicle that is allowed to drive on high-speed rail tracks
@ SVC_TRAILER
vehicle is a large transport vehicle
@ SVC_CUSTOM1
is a user-defined type
@ SVC_ARMY
army vehicles
@ SVC_DRONE
@ SVC_RAIL_ELECTRIC
rail vehicle that requires electrified tracks
@ SVC_DELIVERY
vehicle is a small delivery vehicle
@ SVC_RAIL_URBAN
vehicle is a city rail
@ SVC_MOTORCYCLE
vehicle is a motorcycle
@ SVC_EMERGENCY
public emergency vehicles
@ SVC_MOPED
vehicle is a moped
@ SVC_AUTHORITY
authorities vehicles
@ SVC_TRAM
vehicle is a light rail
@ SVC_TAXI
vehicle is a taxi
@ SVC_BUS
vehicle is a bus
@ SVC_E_VEHICLE
is an electric vehicle
@ SVC_AIRCRAFT
@ SVC_SUBWAY
@ SVC_PEDESTRIAN
pedestrian
static FXIcon * getIcon(const GUIIcon which)
returns a icon previously defined in the enum GUIIcon
static FXIcon * getVClassIcon(const SUMOVehicleClass vc)
returns icon associated to the given vClass