SUMO - Simulation of Urban MObility

GUIViewTraffic.h

Go to the documentation of this file.
00001 /****************************************************************************/
00007 // A view on the simulation; this view is a microscopic one
00008 /****************************************************************************/
00009 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00010 // Copyright (C) 2001-2011 DLR (http://www.dlr.de/) and contributors
00011 /****************************************************************************/
00012 //
00013 //   This program is free software; you can redistribute it and/or modify
00014 //   it under the terms of the GNU General Public License as published by
00015 //   the Free Software Foundation; either version 2 of the License, or
00016 //   (at your option) any later version.
00017 //
00018 /****************************************************************************/
00019 #ifndef GUIViewTraffic_h
00020 #define GUIViewTraffic_h
00021 
00022 
00023 // ===========================================================================
00024 // included modules
00025 // ===========================================================================
00026 #ifdef _MSC_VER
00027 #include <windows_config.h>
00028 #else
00029 #include <config.h>
00030 #endif
00031 
00032 #include <string>
00033 #include <utils/geom/Boundary.h>
00034 #include <utils/geom/Position.h>
00035 #include <utils/common/RGBColor.h>
00036 #include <utils/geom/PositionVector.h>
00037 #include <utils/shapes/Polygon.h>
00038 #include "GUISUMOViewParent.h"
00039 #include <utils/gui/windows/GUISUMOAbstractView.h>
00040 
00041 
00042 // ===========================================================================
00043 // class declarations
00044 // ===========================================================================
00045 class GUINet;
00046 class GUISUMOViewParent;
00047 class GUIVehicle;
00048 class GUILaneWrapper;
00049 class MSRoute;
00050 
00051 
00052 // ===========================================================================
00053 // class definitions
00054 // ===========================================================================
00059 class GUIViewTraffic : public GUISUMOAbstractView {
00060 public:
00062     GUIViewTraffic(FXComposite* p, GUIMainWindow& app,
00063                    GUISUMOViewParent* parent, GUINet& net, FXGLVisual* glVis,
00064                    FXGLCanvas* share);
00066     virtual ~GUIViewTraffic();
00067 
00069     virtual void buildViewToolBars(GUIGlChildWindow&);
00070 
00071 
00075     void startTrack(int id);
00076 
00077 
00080     void stopTrack();
00081 
00082 
00086     int getTrackedID() const;
00087 
00088     bool setColorScheme(const std::string& name);
00089 
00090     void showViewschemeEditor();
00091 
00093     void onGamingClick(Position pos);
00094 
00096     SUMOTime getCurrentTimeStep() const;
00097 
00098 protected:
00099     int doPaintGL(int mode, const Boundary& bound);
00100 
00101 
00102 private:
00103     int myTrackedID;
00104 
00105 protected:
00106     GUIViewTraffic() { }
00107 
00108 };
00109 
00110 
00111 #endif
00112 
00113 /****************************************************************************/
00114 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines