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-2018 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
15 // The gui-version of the MEInductLoop
16 /****************************************************************************/
17 #ifndef GUIMEInductLoop_h
18 #define GUIMEInductLoop_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include <mesosim/MEInductLoop.h>
27 #include <utils/geom/Position.h>
29 
30 
31 // ===========================================================================
32 // class declarations
33 // ===========================================================================
34 class GUILane;
35 class MESegment;
36 
37 
38 // ===========================================================================
39 // class definitions
40 // ===========================================================================
47 class GUIMEInductLoop : public MEInductLoop {
48 public:
50  GUIMEInductLoop(const std::string& id, MESegment* s,
51  double position, const std::string& vTypes);
52 
55 
60 
61 
62 public:
67  class MyWrapper : public GUIDetectorWrapper {
68  public:
70  MyWrapper(GUIMEInductLoop& detector,
71  double pos);
72 
74  ~MyWrapper();
75 
76 
78 
79 
88  GUIMainWindow& app, GUISUMOAbstractView& parent);
89 
90 
96  void drawGL(const GUIVisualizationSettings& s) const;
97 
98 
106 
107 
110 
111  private:
114 
117 
120 
122  double myFGRotation;
123 
125  double myPosition;
126 
127  private:
129  MyWrapper(const MyWrapper&);
130 
132  MyWrapper& operator=(const MyWrapper&);
133 
134  };
135 
136 };
137 
138 
139 #endif
140 
141 /****************************************************************************/
142 
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:42
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:63
Boundary myBoundary
The detector&#39;s boundary.
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:39
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:50
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:48
GUIMEInductLoop & myDetector
The wrapped detector.