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-2023 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// ===========================================================================
33FXIcon*
35 switch (vc) {
36 case SVC_IGNORING:
38 case SVC_PRIVATE:
40 case SVC_EMERGENCY:
42 case SVC_AUTHORITY:
44 case SVC_ARMY:
46 case SVC_VIP:
48 case SVC_PEDESTRIAN:
50 case SVC_PASSENGER:
52 case SVC_HOV:
54 case SVC_TAXI:
56 case SVC_BUS:
58 case SVC_COACH:
60 case SVC_DELIVERY:
62 case SVC_TRUCK:
64 case SVC_TRAILER:
66 case SVC_MOTORCYCLE:
68 case SVC_MOPED:
70 case SVC_BICYCLE:
72 case SVC_E_VEHICLE:
74 case SVC_TRAM:
76 case SVC_RAIL_URBAN:
78 case SVC_RAIL:
82 case SVC_RAIL_FAST:
84 case SVC_SHIP:
86 case SVC_CUSTOM1:
88 case SVC_CUSTOM2:
90 default:
91 throw ProcessError(TL("Invalid vClass"));
92 }
93}
94
95
96/****************************************************************************/
@ VCLASS_SMALL_TRUCK
@ VCLASS_SMALL_EMERGENCY
@ VCLASS_SMALL_COACH
@ VCLASS_SMALL_TAXI
@ VCLASS_SMALL_CUSTOM1
@ VCLASS_SMALL_PASSENGER
@ VCLASS_SMALL_RAIL_FAST
@ VCLASS_SMALL_ARMY
@ VCLASS_SMALL_RAIL_URBAN
@ VCLASS_SMALL_BUS
@ VCLASS_SMALL_AUTHORITY
@ VCLASS_SMALL_CUSTOM2
@ VCLASS_SMALL_VIP
@ VCLASS_SMALL_MOPED
@ VCLASS_SMALL_PRIVATE
@ VCLASS_SMALL_EVEHICLE
@ VCLASS_SMALL_SHIP
@ VCLASS_SMALL_BICYCLE
@ VCLASS_SMALL_RAIL
@ 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:287
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_RAIL
vehicle is a not electrified rail
@ SVC_COACH
vehicle is a coach
@ SVC_PASSENGER
vehicle is a passenger car (a "normal" car)
@ SVC_BICYCLE
vehicle is a bicycle
@ 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_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_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