|
SUMO - Simulation of Urban MObility
|
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 (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 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/PositionVector.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/Position.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: 00078 GUIBusStop(const std::string& id, 00079 const std::vector<std::string> &lines, MSLane& lane, 00080 SUMOReal frompos, SUMOReal topos) throw(); 00081 00082 00084 ~GUIBusStop() throw(); 00085 00086 00087 00089 00090 00098 GUIGLObjectPopupMenu* getPopUpMenu(GUIMainWindow& app, 00099 GUISUMOAbstractView& parent) throw(); 00100 00101 00111 GUIParameterTableWindow* getParameterWindow(GUIMainWindow& app, 00112 GUISUMOAbstractView& parent) throw(); 00113 00114 00120 Boundary getCenteringBoundary() const throw(); 00121 00122 00127 void drawGL(const GUIVisualizationSettings& s) const throw(); 00129 00130 00131 private: 00133 DoubleVector myFGShapeRotations; 00134 00136 DoubleVector myFGShapeLengths; 00137 00139 PositionVector myFGShape; 00140 00142 Position myFGSignPos; 00143 00145 SUMOReal myFGSignRot; 00146 00147 00148 }; 00149 00150 00151 #endif 00152 00153 /****************************************************************************/ 00154