SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GUIViewTraffic.h
Go to the documentation of this file.
1 /****************************************************************************/
10 // A view on the simulation; this view is a microscopic one
11 /****************************************************************************/
12 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
13 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors
14 /****************************************************************************/
15 //
16 // This file is part of SUMO.
17 // SUMO is free software: you can redistribute it and/or modify
18 // it under the terms of the GNU General Public License as published by
19 // the Free Software Foundation, either version 3 of the License, or
20 // (at your option) any later version.
21 //
22 /****************************************************************************/
23 #ifndef GUIViewTraffic_h
24 #define GUIViewTraffic_h
25 
26 
27 // ===========================================================================
28 // included modules
29 // ===========================================================================
30 #ifdef _MSC_VER
31 #include <windows_config.h>
32 #else
33 #include <config.h>
34 #endif
35 
36 #include <string>
37 #include <utils/geom/Boundary.h>
38 #include <utils/geom/Position.h>
39 #include <utils/common/RGBColor.h>
41 #include <utils/shapes/Polygon.h>
42 #include "GUISUMOViewParent.h"
44 
45 
46 // ===========================================================================
47 // class declarations
48 // ===========================================================================
49 class GUINet;
50 class GUISUMOViewParent;
51 class GUIVehicle;
52 class GUILaneWrapper;
53 class MSRoute;
54 
55 
56 // ===========================================================================
57 // class definitions
58 // ===========================================================================
64 public:
66  GUIViewTraffic(FXComposite* p, GUIMainWindow& app,
67  GUISUMOViewParent* parent, GUINet& net, FXGLVisual* glVis,
68  FXGLCanvas* share);
70  virtual ~GUIViewTraffic();
71 
73  virtual void buildViewToolBars(GUIGlChildWindow&);
74 
75 
79  void startTrack(int id);
80 
81 
84  void stopTrack();
85 
86 
90  int getTrackedID() const;
91 
92  bool setColorScheme(const std::string& name);
93 
94  void showViewschemeEditor();
95 
97  void onGamingClick(Position pos);
98 
101 
102 protected:
103  int doPaintGL(int mode, const Boundary& bound);
104 
105 
106 private:
108 
109 protected:
111 
112 };
113 
114 
115 #endif
116 
117 /****************************************************************************/
118