SUMO - Simulation of Urban MObility

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 (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 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/PositionVector.h>
00035 #include <utils/gui/globjects/GUIGLObjectPopupMenu.h>
00036 #include <utils/gui/globjects/GUIGlObject.h>
00037 
00038 
00039 // ===========================================================================
00040 // class declarations
00041 // ===========================================================================
00042 class MSNet;
00043 class MSJunction;
00044 
00045 
00046 // ===========================================================================
00047 // class definitions
00048 // ===========================================================================
00060 class GUIJunctionWrapper : public GUIGlObject {
00061 public:
00066     GUIJunctionWrapper(MSJunction& junction) throw();
00067 
00068 
00070     virtual ~GUIJunctionWrapper() throw();
00071 
00072 
00073 
00075 
00076 
00084     GUIGLObjectPopupMenu* getPopUpMenu(GUIMainWindow& app,
00085                                        GUISUMOAbstractView& parent) throw();
00086 
00087 
00095     GUIParameterTableWindow* getParameterWindow(
00096         GUIMainWindow& app, GUISUMOAbstractView& parent) throw();
00097 
00098 
00104     Boundary getCenteringBoundary() const throw();
00105 
00106 
00111     void drawGL(const GUIVisualizationSettings& s) const throw();
00113 
00117     Boundary getBoundary() const throw() {
00118         return myBoundary;
00119     }
00120 
00122     bool isInner() const {
00123         return myIsInner;
00124     }
00125 
00126 
00127 protected:
00129     MSJunction& myJunction;
00130 
00132     SUMOReal myMaxSize;
00133 
00135     Boundary myBoundary;
00136 
00137 
00138 private:
00140     GUIJunctionWrapper(const GUIJunctionWrapper&);
00141 
00143     GUIJunctionWrapper& operator=(const GUIJunctionWrapper&);
00144 
00146     bool myIsInner;
00147 
00148 };
00149 
00150 
00151 #endif
00152 
00153 /****************************************************************************/
00154 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines