GUIBusStop.h

Go to the documentation of this file.
00001 /****************************************************************************/
00007 // A lane area vehicles can halt at (gui-version)
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 GUIBusStop_h
00020 #define GUIBusStop_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 <vector>
00033 #include <string>
00034 #include <utils/common/Command.h>
00035 #include <utils/common/VectorHelper.h>
00036 #include <utils/geom/Position2DVector.h>
00037 #include <microsim/trigger/MSBusStop.h>
00038 #include <utils/gui/globjects/GUIGlObject.h>
00039 #include <utils/gui/globjects/GUIGlObject_AbstractAdd.h>
00040 #include <utils/gui/globjects/GUIGLObjectPopupMenu.h>
00041 #include <utils/geom/Position2D.h>
00042 #include <gui/GUIManipulator.h>
00043 #include <utils/foxtools/FXRealSpinDial.h>
00044 
00045 
00046 // ===========================================================================
00047 // class declarations
00048 // ===========================================================================
00049 class MSNet;
00050 class MSLane;
00051 class GUIManipulator;
00052 
00053 
00054 // ===========================================================================
00055 // class definitions
00056 // ===========================================================================
00068 class GUIBusStop : public MSBusStop, public GUIGlObject_AbstractAdd {
00069 public:
00079     GUIBusStop(const std::string &id, MSNet &net,
00080                const std::vector<std::string> &lines, MSLane &lane,
00081                SUMOReal frompos, SUMOReal topos) throw();
00082 
00083 
00085     ~GUIBusStop() throw();
00086 
00087 
00088 
00090 
00091 
00099     GUIGLObjectPopupMenu *getPopUpMenu(GUIMainWindow &app,
00100                                        GUISUMOAbstractView &parent) throw();
00101 
00102 
00112     GUIParameterTableWindow *getParameterWindow(GUIMainWindow &app,
00113             GUISUMOAbstractView &parent) throw();
00114 
00115 
00121     const std::string &getMicrosimID() const throw();
00122 
00123 
00129     Boundary getCenteringBoundary() const throw();
00130 
00131 
00136     void drawGL(const GUIVisualizationSettings &s) const throw();
00138 
00139 
00140 private:
00142     DoubleVector myFGShapeRotations;
00143 
00145     DoubleVector myFGShapeLengths;
00146 
00148     Position2DVector myFGShape;
00149 
00151     Position2D myFGSignPos;
00152 
00154     SUMOReal myFGSignRot;
00155 
00156 
00157 };
00158 
00159 
00160 #endif
00161 
00162 /****************************************************************************/
00163 

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