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-2024 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
26
27#include "VClassIcons.h"
28
29
30// ===========================================================================
31// member method definitions
32// ===========================================================================
33
34FXIcon*
36 switch (vc) {
37 case SVC_IGNORING:
39 case SVC_PRIVATE:
41 case SVC_EMERGENCY:
43 case SVC_AUTHORITY:
45 case SVC_ARMY:
47 case SVC_VIP:
49 case SVC_PEDESTRIAN:
51 case SVC_PASSENGER:
53 case SVC_HOV:
55 case SVC_TAXI:
57 case SVC_BUS:
59 case SVC_COACH:
61 case SVC_DELIVERY:
63 case SVC_TRUCK:
65 case SVC_TRAILER:
67 case SVC_MOTORCYCLE:
69 case SVC_MOPED:
71 case SVC_BICYCLE:
73 case SVC_E_VEHICLE:
75 case SVC_TRAM:
77 case SVC_RAIL_URBAN:
79 case SVC_RAIL:
83 case SVC_RAIL_FAST:
85 case SVC_SHIP:
87 case SVC_CONTAINER:
89 case SVC_CABLE_CAR:
91 case SVC_SUBWAY:
93 case SVC_AIRCRAFT:
95 case SVC_WHEELCHAIR:
97 case SVC_SCOOTER:
99 case SVC_DRONE:
101 case SVC_CUSTOM1:
103 case SVC_CUSTOM2:
105 default:
106 throw ProcessError(TL("Invalid vClass"));
107 }
108}
109
110
111/****************************************************************************/
@ 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:315
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