SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GUI_E2_ZS_Collector.h
Go to the documentation of this file.
1 /****************************************************************************/
9 // The gui-version of the MS_E2_ZS_Collector
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
12 // Copyright (C) 2001-2013 DLR (http://www.dlr.de/) and contributors
13 /****************************************************************************/
14 //
15 // This file is part of SUMO.
16 // SUMO is free software: you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation, either version 3 of the License, or
19 // (at your option) any later version.
20 //
21 /****************************************************************************/
22 #ifndef GUI_E2_ZS_Collector_h
23 #define GUI_E2_ZS_Collector_h
24 
25 
26 // ===========================================================================
27 // included modules
28 // ===========================================================================
29 #ifdef _MSC_VER
30 #include <windows_config.h>
31 #else
32 #include <config.h>
33 #endif
34 
36 #include <microsim/MSNet.h>
37 #include <utils/geom/Position.h>
41 #include "GUIDetectorWrapper.h"
42 
43 
44 // ===========================================================================
45 // class declarations
46 // ===========================================================================
48 
49 
50 // ===========================================================================
51 // class definitions
52 // ===========================================================================
63 public:
76  GUI_E2_ZS_Collector(const std::string& id, DetectorUsage usage,
77  MSLane* const lane, SUMOReal startPos, SUMOReal detLength,
78  SUMOTime haltingTimeThreshold, SUMOReal haltingSpeedThreshold,
79  SUMOReal jamDistThreshold);
80 
81 
84 
85 
91 
92 
93 public:
98  class MyWrapper : public GUIDetectorWrapper {
99  public:
101  MyWrapper(GUI_E2_ZS_Collector& detector);
102 
104  ~MyWrapper();
105 
106 
108 
109 
118  GUIMainWindow& app, GUISUMOAbstractView& parent);
119 
120 
127 
128 
133  void drawGL(const GUIVisualizationSettings& s) const;
135 
136 
139 
140 
141  private:
144 
147 
150 
152  std::vector<SUMOReal> myShapeLengths;
153 
155  std::vector<SUMOReal> myShapeRotations;
156 
157  private:
159  MyWrapper(const MyWrapper&);
160 
162  MyWrapper& operator=(const MyWrapper&);
163 
164  };
165 
166 };
167 
168 
169 #endif
170 
171 /****************************************************************************/
172