|
SUMO - Simulation of Urban MObility
|
00001 /****************************************************************************/ 00007 // The gui-version of the MS_E2_ZS_Collector 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 GUI_E2_ZS_Collector_h 00020 #define GUI_E2_ZS_Collector_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 <microsim/output/MSE2Collector.h> 00033 #include <microsim/MSNet.h> 00034 #include <utils/geom/Position.h> 00035 #include <utils/geom/PositionVector.h> 00036 #include <utils/common/VectorHelper.h> 00037 #include <utils/common/ValueSource.h> 00038 #include "GUIDetectorWrapper.h" 00039 00040 00041 // =========================================================================== 00042 // class declarations 00043 // =========================================================================== 00044 class GUILaneWrapper; 00045 class GUI_E2_ZS_CollectorOverLanes; 00046 00047 00048 // =========================================================================== 00049 // class definitions 00050 // =========================================================================== 00060 class GUI_E2_ZS_Collector : public MSE2Collector { 00061 public: 00074 GUI_E2_ZS_Collector(const std::string& id, DetectorUsage usage, 00075 MSLane* const lane, SUMOReal startPos, SUMOReal detLength, 00076 SUMOTime haltingTimeThreshold, SUMOReal haltingSpeedThreshold, 00077 SUMOReal jamDistThreshold) throw(); 00078 00079 00081 ~GUI_E2_ZS_Collector() throw(); 00082 00083 00088 virtual GUIDetectorWrapper* buildDetectorGUIRepresentation(); 00089 00090 00091 public: 00096 class MyWrapper : public GUIDetectorWrapper { 00097 public: 00099 MyWrapper(GUI_E2_ZS_Collector& detector) throw(); 00100 00102 ~MyWrapper() throw(); 00103 00104 00106 00107 00115 GUIParameterTableWindow* getParameterWindow( 00116 GUIMainWindow& app, GUISUMOAbstractView& parent) throw(); 00117 00118 00124 Boundary getCenteringBoundary() const throw(); 00125 00126 00131 void drawGL(const GUIVisualizationSettings& s) const throw(); 00133 00134 00136 GUI_E2_ZS_Collector& getDetector(); 00137 00138 00139 private: 00141 GUI_E2_ZS_Collector& myDetector; 00142 00144 Boundary myBoundary; 00145 00147 PositionVector myFullGeometry; 00148 00150 DoubleVector myShapeLengths; 00151 00153 DoubleVector myShapeRotations; 00154 00155 private: 00157 MyWrapper(const MyWrapper&); 00158 00160 MyWrapper& operator=(const MyWrapper&); 00161 00162 }; 00163 00164 }; 00165 00166 00167 #endif 00168 00169 /****************************************************************************/ 00170