Eclipse SUMO - Simulation of Urban MObility
GUIBaseVehicleHelper.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
15 // Functions used in GUIBaseVehicleHelper and GNEVehicle
16 /****************************************************************************/
17 #ifndef GUIBaseVehicleHelper_h
18 #define GUIBaseVehicleHelper_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include <string>
27 
28 
29 // ===========================================================================
30 // class declarations
31 // ===========================================================================
33 class GUIGlObject;
34 
35 
36 // ===========================================================================
37 // class definitions
38 // ===========================================================================
44 public:
45 
47  static void drawPoly(const double* poses, const double offset);
48 
50  static void drawAction_drawVehicleAsBoxPlus(const double width, const double length);
51 
53  static void drawAction_drawVehicleAsTrianglePlus(const double width, const double length);
54 
56  static void drawAction_drawVehicleAsPoly(const GUIVisualizationSettings& s, const SUMOVehicleShape shape, const double width, const double length,
57  int carriageIndex = -1);
58 
62  static bool drawAction_drawVehicleAsImage(const GUIVisualizationSettings& s, const std::string& file,
63  const GUIGlObject* o, const double width, double length);
64 };
65 
66 
67 #endif
68 
69 /****************************************************************************/
70 
static void drawAction_drawVehicleAsBoxPlus(const double width, const double length)
draw vehicle as a Box
Stores the information about how to visualize structures.
A MSVehicle extended by some values for usage within the gui.
static void drawAction_drawVehicleAsTrianglePlus(const double width, const double length)
draw vehicle as a triangle
static void drawPoly(const double *poses, const double offset)
draw poly
static void drawAction_drawVehicleAsPoly(const GUIVisualizationSettings &s, const SUMOVehicleShape shape, const double width, const double length, int carriageIndex=-1)
draw vehicle as a polygon
SUMOVehicleShape
Definition of vehicle classes to differ between different appearences.
static bool drawAction_drawVehicleAsImage(const GUIVisualizationSettings &s, const std::string &file, const GUIGlObject *o, const double width, double length)
try to draw vehicle as raster image and return true if sucessful