SUMO - Simulation of Urban MObility
GUIMEInductLoop.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
17 // The gui-version of the MEInductLoop
18 /****************************************************************************/
19 #ifndef GUIMEInductLoop_h
20 #define GUIMEInductLoop_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #ifdef _MSC_VER
27 #include <windows_config.h>
28 #else
29 #include <config.h>
30 #endif
31 
32 #include <mesosim/MEInductLoop.h>
33 #include <utils/geom/Position.h>
35 
36 
37 // ===========================================================================
38 // class declarations
39 // ===========================================================================
40 class GUILane;
41 class MESegment;
42 
43 
44 // ===========================================================================
45 // class definitions
46 // ===========================================================================
53 class GUIMEInductLoop : public MEInductLoop {
54 public:
56  GUIMEInductLoop(const std::string& id, MESegment* s,
57  double position, const std::string& vTypes);
58 
61 
66 
67 
68 public:
73  class MyWrapper : public GUIDetectorWrapper {
74  public:
76  MyWrapper(GUIMEInductLoop& detector,
77  double pos);
78 
80  ~MyWrapper();
81 
82 
84 
85 
94  GUIMainWindow& app, GUISUMOAbstractView& parent);
95 
96 
102  void drawGL(const GUIVisualizationSettings& s) const;
103 
104 
112 
113 
116 
117  private:
120 
123 
126 
128  double myFGRotation;
129 
131  double myPosition;
132 
133  private:
135  MyWrapper(const MyWrapper&);
136 
138  MyWrapper& operator=(const MyWrapper&);
139 
140  };
141 
142 };
143 
144 
145 #endif
146 
147 /****************************************************************************/
148 
double myFGRotation
The rotation in full-geometry mode.
Position myFGPosition
The position in full-geometry mode.
~GUIMEInductLoop()
Destructor.
Stores the information about how to visualize structures.
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:47
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:69
Boundary myBoundary
The detector&#39;s boundary.
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:45
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:56
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
virtual GUIDetectorWrapper * buildDetectorGUIRepresentation()
Returns this detector&#39;s visualisation-wrapper.
A window containing a gl-object&#39;s parameter.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
An induction loop for mesoscopic simulation.
Definition: MEInductLoop.h:54
GUIMEInductLoop & myDetector
The wrapped detector.