SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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-2016 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  SUMOReal position, const std::string& vTypes);
59 
62 
67 
68 
69 public:
74  class MyWrapper : public GUIDetectorWrapper {
75  public:
77  MyWrapper(GUIMEInductLoop& detector,
78  SUMOReal 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 
130 
133 
134  private:
136  MyWrapper(const MyWrapper&);
137 
139  MyWrapper& operator=(const MyWrapper&);
140 
141  };
142 
143 };
144 
145 
146 #endif
147 
148 /****************************************************************************/
149 
Position myFGPosition
The position in full-geometry mode.
MyWrapper(GUIMEInductLoop &detector, SUMOReal pos)
Constructor.
~GUIMEInductLoop()
Destructor.
Stores the information about how to visualize structures.
SUMOReal myFGRotation
The rotation in full-geometry mode.
SUMOReal myPosition
The position on the lane.
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:48
Representation of a lane in the micro simulation (gui-version)
Definition: GUILane.h:70
Boundary myBoundary
The detector'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.
GUIMEInductLoop(const std::string &id, MESegment *s, SUMOReal position, const std::string &vTypes)
Construtor.
A single mesoscopic segment (cell)
Definition: MESegment.h:57
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
#define SUMOReal
Definition: config.h:214
virtual GUIDetectorWrapper * buildDetectorGUIRepresentation()
Returns this detector's visualisation-wrapper.
A window containing a gl-object'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:55
GUIMEInductLoop & myDetector
The wrapped detector.