SUMO - Simulation of Urban MObility
|
00001 /****************************************************************************/ 00007 // The gui-version of the MSInstantInductLoop 00008 /****************************************************************************/ 00009 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/ 00010 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors 00011 /****************************************************************************/ 00012 // 00013 // This file is part of SUMO. 00014 // SUMO is free software: you can redistribute it and/or modify 00015 // it under the terms of the GNU General Public License as published by 00016 // the Free Software Foundation, either version 3 of the License, or 00017 // (at your option) any later version. 00018 // 00019 /****************************************************************************/ 00020 #ifndef GUIInstantInductLoop_h 00021 #define GUIInstantInductLoop_h 00022 00023 00024 // =========================================================================== 00025 // included modules 00026 // =========================================================================== 00027 #ifdef _MSC_VER 00028 #include <windows_config.h> 00029 #else 00030 #include <config.h> 00031 #endif 00032 00033 #include <utils/foxtools/MFXMutex.h> 00034 #include <microsim/output/MSInstantInductLoop.h> 00035 #include <utils/geom/Position.h> 00036 #include "GUIDetectorWrapper.h" 00037 00038 00039 // =========================================================================== 00040 // class declarations 00041 // =========================================================================== 00042 class GUILaneWrapper; 00043 00044 00045 // =========================================================================== 00046 // class definitions 00047 // =========================================================================== 00052 class GUIInstantInductLoop : public MSInstantInductLoop { 00053 public: 00061 GUIInstantInductLoop(const std::string& id, OutputDevice& od, 00062 MSLane* const lane, SUMOReal positionInMeters) ; 00063 00064 00066 ~GUIInstantInductLoop() ; 00067 00068 00069 00073 virtual GUIDetectorWrapper* buildDetectorGUIRepresentation(); 00074 00075 00076 public: 00081 class MyWrapper : public GUIDetectorWrapper { 00082 public: 00084 MyWrapper(GUIInstantInductLoop& detector, 00085 GUILaneWrapper& wrapper, 00086 SUMOReal pos) ; 00087 00089 ~MyWrapper() ; 00090 00091 00093 00094 00102 GUIParameterTableWindow* getParameterWindow( 00103 GUIMainWindow& app, GUISUMOAbstractView& parent) ; 00104 00105 00111 Boundary getCenteringBoundary() const ; 00112 00113 00118 void drawGL(const GUIVisualizationSettings& s) const ; 00120 00121 00123 GUIInstantInductLoop& getLoop(); 00124 00125 00126 private: 00128 GUIInstantInductLoop& myDetector; 00129 00131 Boundary myBoundary; 00132 00134 Position myFGPosition; 00135 00137 SUMOReal myFGRotation; 00138 00140 SUMOReal myPosition; 00141 00142 private: 00144 MyWrapper(const MyWrapper&); 00145 00147 MyWrapper& operator=(const MyWrapper&); 00148 00149 }; 00150 00151 00153 mutable MFXMutex myLock; 00154 00155 }; 00156 00157 00158 #endif 00159 00160 /****************************************************************************/ 00161