GUIJunctionWrapper.h

Go to the documentation of this file.
00001 /****************************************************************************/
00007 // Holds geometrical values for a junction
00008 /****************************************************************************/
00009 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00010 // Copyright 2001-2010 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 GUIJunctionWrapper_h
00020 #define GUIJunctionWrapper_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 <utility>
00034 #include <utils/geom/Position2DVector.h>
00035 #include <utils/gui/globjects/GUIGlObjectStorage.h>
00036 #include <utils/gui/globjects/GUIGLObjectPopupMenu.h>
00037 #include <utils/gui/globjects/GUIGlObject.h>
00038 
00039 
00040 // ===========================================================================
00041 // class declarations
00042 // ===========================================================================
00043 class MSNet;
00044 class MSJunction;
00045 
00046 
00047 // ===========================================================================
00048 // class definitions
00049 // ===========================================================================
00061 class GUIJunctionWrapper : public GUIGlObject {
00062 public:
00067     GUIJunctionWrapper(GUIGlObjectStorage &idStorage,
00068                        MSJunction &junction) throw();
00069 
00070 
00072     virtual ~GUIJunctionWrapper() throw();
00073 
00074 
00075 
00077 
00078 
00086     GUIGLObjectPopupMenu *getPopUpMenu(GUIMainWindow &app,
00087                                        GUISUMOAbstractView &parent) throw();
00088 
00089 
00097     GUIParameterTableWindow *getParameterWindow(
00098         GUIMainWindow &app, GUISUMOAbstractView &parent) throw();
00099 
00100 
00106     const std::string &getMicrosimID() const throw();
00107 
00108 
00115     GUIGlObjectType getType() const throw() {
00116         return GLO_JUNCTION;
00117     }
00118 
00119 
00125     Boundary getCenteringBoundary() const throw();
00126 
00127 
00132     void drawGL(const GUIVisualizationSettings &s) const throw();
00134 
00135 
00136 
00140     Boundary getBoundary() const throw() {
00141         return myBoundary;
00142     }
00143 
00144 
00145 protected:
00147     MSJunction &myJunction;
00148 
00150     SUMOReal myMaxSize;
00151 
00153     Boundary myBoundary;
00154 
00155 
00156 private:
00158     GUIJunctionWrapper(const GUIJunctionWrapper&);
00159 
00161     GUIJunctionWrapper& operator=(const GUIJunctionWrapper&);
00162 
00163 };
00164 
00165 
00166 #endif
00167 
00168 /****************************************************************************/
00169 

Generated on Wed May 5 00:06:30 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6