SUMO - Simulation of Urban MObility
GUIMEInductLoop.h
Go to the documentation of this file.
1 /****************************************************************************/
7 // The gui-version of the MEInductLoop
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
10 // Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors
11 /****************************************************************************/
12 //
13 // This file is part of SUMO.
14 // SUMO is free software: you can redistribute it and/or modify
15 // it under the terms of the GNU General Public License as published by
16 // the Free Software Foundation, either version 3 of the License, or
17 // (at your option) any later version.
18 //
19 /****************************************************************************/
20 #ifndef GUIMEInductLoop_h
21 #define GUIMEInductLoop_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include <mesosim/MEInductLoop.h>
34 #include <utils/geom/Position.h>
36 
37 
38 // ===========================================================================
39 // class declarations
40 // ===========================================================================
41 class GUILane;
42 class MESegment;
43 
44 
45 // ===========================================================================
46 // class definitions
47 // ===========================================================================
54 class GUIMEInductLoop : public MEInductLoop {
55 public:
57  GUIMEInductLoop(const std::string& id, MESegment* s,
58  double position, const std::string& vTypes);
59 
62 
67 
68 
69 public:
74  class MyWrapper : public GUIDetectorWrapper {
75  public:
77  MyWrapper(GUIMEInductLoop& detector,
78  double pos);
79 
81  ~MyWrapper();
82 
83 
85 
86 
95  GUIMainWindow& app, GUISUMOAbstractView& parent);
96 
97 
103  void drawGL(const GUIVisualizationSettings& s) const;
104 
105 
113 
114 
117 
118  private:
121 
124 
127 
129  double myFGRotation;
130 
132  double myPosition;
133 
134  private:
136  MyWrapper(const MyWrapper&);
137 
139  MyWrapper& operator=(const MyWrapper&);
140 
141  };
142 
143 };
144 
145 
146 #endif
147 
148 /****************************************************************************/
149 
double myFGRotation
The rotation in full-geometry mode.
Position myFGPosition
The position in full-geometry mode.
~GUIMEInductLoop()
Destructor.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Stores the information about how to visualize structures.
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:48
GUIMEInductLoop(const std::string &id, MESegment *s, double position, const std::string &vTypes)
Construtor.
Representation of a lane in the micro simulation (gui-version)
Definition: GUILane.h:70
Boundary myBoundary
The detector&#39;s boundary.
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:46
GUIMEInductLoop & getLoop()
Returns the detector itself.
MyWrapper & operator=(const MyWrapper &)
Invalidated assignment operator.
MyWrapper(GUIMEInductLoop &detector, double pos)
Constructor.
double myPosition
The position on the lane.
A single mesoscopic segment (cell)
Definition: MESegment.h:57
virtual GUIDetectorWrapper * buildDetectorGUIRepresentation()
Returns this detector&#39;s visualisation-wrapper.
A window containing a gl-object&#39;s parameter.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
An induction loop for mesoscopic simulation.
Definition: MEInductLoop.h:55
GUIMEInductLoop & myDetector
The wrapped detector.