SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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.dlr.de/
12 // Copyright (C) 2001-2016 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 "GUIDetectorWrapper.h"
37 
38 
39 // ===========================================================================
40 // class declarations
41 // ===========================================================================
43 
44 
45 // ===========================================================================
46 // class definitions
47 // ===========================================================================
58 public:
71  GUI_E2_ZS_Collector(const std::string& id, DetectorUsage usage,
72  MSLane* const lane, SUMOReal startPos, SUMOReal detLength,
73  SUMOTime haltingTimeThreshold, SUMOReal haltingSpeedThreshold,
74  SUMOReal jamDistThreshold, const std::string& vTypes);
75 
76 
89  GUI_E2_ZS_Collector(const std::string& id, DetectorUsage usage,
90  MSLane* const lane, SUMOReal startPos, SUMOReal detLength,
91  SUMOTime haltingTimeThreshold, SUMOReal haltingSpeedThreshold,
92  SUMOReal jamDistThreshold, const std::set<std::string>& vTypes);
93 
94 
97 
98 
104 
105 
106 public:
111  class MyWrapper : public GUIDetectorWrapper {
112  public:
114  MyWrapper(GUI_E2_ZS_Collector& detector);
115 
117  ~MyWrapper();
118 
119 
121 
122 
131  GUIMainWindow& app, GUISUMOAbstractView& parent);
132 
133 
140 
141 
146  void drawGL(const GUIVisualizationSettings& s) const;
148 
149 
152 
153 
154  private:
157 
160 
163 
165  std::vector<SUMOReal> myShapeLengths;
166 
168  std::vector<SUMOReal> myShapeRotations;
169 
170  private:
172  MyWrapper(const MyWrapper&);
173 
175  MyWrapper& operator=(const MyWrapper&);
176 
177  };
178 
179 };
180 
181 
182 #endif
183 
184 /****************************************************************************/
185 
Boundary myBoundary
The detector's boundary.
long long int SUMOTime
Definition: SUMOTime.h:43
The gui-version of a MS_E2_ZS_CollectorOverLanes.
An areal (along a single lane) detector.
Definition: MSE2Collector.h:83
Stores the information about how to visualize structures.
~GUI_E2_ZS_Collector()
Destructor.
std::vector< SUMOReal > myShapeRotations
A sequence of rotations in full-geometry mode.
PositionVector myFullGeometry
A sequence of positions in full-geometry mode.
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
GUI_E2_ZS_Collector & getDetector()
Returns the detector itself.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
virtual GUIDetectorWrapper * buildDetectorGUIRepresentation()
Returns the wrapper for this detector.
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:48
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
GUI_E2_ZS_Collector & myDetector
The wrapped detector.
MyWrapper(GUI_E2_ZS_Collector &detector)
Constructor.
A list of positions.
std::vector< SUMOReal > myShapeLengths
A sequence of lengths in full-geometry mode.
GUI_E2_ZS_Collector(const std::string &id, DetectorUsage usage, MSLane *const lane, SUMOReal startPos, SUMOReal detLength, SUMOTime haltingTimeThreshold, SUMOReal haltingSpeedThreshold, SUMOReal jamDistThreshold, const std::string &vTypes)
Constructor.
MyWrapper & operator=(const MyWrapper &)
Invalidated assignment operator.
The gui-version of the MS_E2_ZS_Collector.
#define SUMOReal
Definition: config.h:214
Representation of a lane in the micro simulation.
Definition: MSLane.h:79
A window containing a gl-object's parameter.