Eclipse 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-2019 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 /****************************************************************************/
14 // The gui-version of the MEInductLoop
15 /****************************************************************************/
16 #ifndef GUIMEInductLoop_h
17 #define GUIMEInductLoop_h
18 
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include <config.h>
24 
25 #include <mesosim/MEInductLoop.h>
26 #include <utils/geom/Position.h>
28 
29 
30 // ===========================================================================
31 // class declarations
32 // ===========================================================================
33 class GUILane;
34 class MESegment;
35 
36 
37 // ===========================================================================
38 // class definitions
39 // ===========================================================================
46 class GUIMEInductLoop : public MEInductLoop {
47 public:
49  GUIMEInductLoop(const std::string& id, MESegment* s,
50  double position, const std::string& vTypes);
51 
54 
59 
60 
61 public:
66  class MyWrapper : public GUIDetectorWrapper {
67  public:
69  MyWrapper(GUIMEInductLoop& detector,
70  double pos);
71 
73  ~MyWrapper();
74 
75 
77 
78 
87  GUIMainWindow& app, GUISUMOAbstractView& parent);
88 
89 
95  void drawGL(const GUIVisualizationSettings& s) const;
96 
97 
105 
106 
109 
110  private:
113 
116 
119 
121  double myFGRotation;
122 
124  double myPosition;
125 
126  private:
128  MyWrapper(const MyWrapper&);
129 
131  MyWrapper& operator=(const MyWrapper&);
132 
133  };
134 
135 };
136 
137 
138 #endif
139 
140 /****************************************************************************/
141 
GUIParameterTableWindow
A window containing a gl-object's parameter.
Definition: GUIParameterTableWindow.h:62
GUIMEInductLoop::MyWrapper::MyWrapper
MyWrapper(GUIMEInductLoop &detector, double pos)
Constructor.
Definition: GUIMEInductLoop.cpp:60
GUISUMOAbstractView
Definition: GUISUMOAbstractView.h:72
GUIMEInductLoop::MyWrapper::operator=
MyWrapper & operator=(const MyWrapper &)
Invalidated assignment operator.
MESegment
A single mesoscopic segment (cell)
Definition: MESegment.h:49
GUIDetectorWrapper
Definition: GUIDetectorWrapper.h:42
MEInductLoop.h
GUIMEInductLoop::MyWrapper::getLoop
GUIMEInductLoop & getLoop()
Returns the detector itself.
Definition: GUIMEInductLoop.cpp:170
MEInductLoop
An induction loop for mesoscopic simulation.
Definition: MEInductLoop.h:47
GUIMEInductLoop
Definition: GUIMEInductLoop.h:46
GUIMEInductLoop::MyWrapper::myPosition
double myPosition
The position on the lane.
Definition: GUIMEInductLoop.h:124
GUIMEInductLoop::~GUIMEInductLoop
~GUIMEInductLoop()
Destructor.
Definition: GUIMEInductLoop.cpp:48
GUIMEInductLoop::GUIMEInductLoop
GUIMEInductLoop(const std::string &id, MESegment *s, double position, const std::string &vTypes)
Construtor.
Definition: GUIMEInductLoop.cpp:43
GUIMEInductLoop::buildDetectorGUIRepresentation
virtual GUIDetectorWrapper * buildDetectorGUIRepresentation()
Returns this detector's visualisation-wrapper.
Definition: GUIMEInductLoop.cpp:52
GUIMEInductLoop::MyWrapper::~MyWrapper
~MyWrapper()
Destructor.
Definition: GUIMEInductLoop.cpp:71
GUIMEInductLoop::MyWrapper::getParameterWindow
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Definition: GUIMEInductLoop.cpp:84
Boundary
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:41
Position
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:38
GUIDetectorWrapper.h
GUIMEInductLoop::MyWrapper::drawGL
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Definition: GUIMEInductLoop.cpp:116
GUIMEInductLoop::MyWrapper::myDetector
GUIMEInductLoop & myDetector
The wrapped detector.
Definition: GUIMEInductLoop.h:112
Position.h
GUILane
Representation of a lane in the micro simulation (gui-version)
Definition: GUILane.h:61
GUIMainWindow
Definition: GUIMainWindow.h:46
GUIMEInductLoop::MyWrapper
Definition: GUIMEInductLoop.h:66
GUIMEInductLoop::MyWrapper::myFGRotation
double myFGRotation
The rotation in full-geometry mode.
Definition: GUIMEInductLoop.h:121
GUIMEInductLoop::MyWrapper::myFGPosition
Position myFGPosition
The position in full-geometry mode.
Definition: GUIMEInductLoop.h:118
config.h
GUIMEInductLoop::MyWrapper::myBoundary
Boundary myBoundary
The detector's boundary.
Definition: GUIMEInductLoop.h:115
GUIVisualizationSettings
Stores the information about how to visualize structures.
Definition: GUIVisualizationSettings.h:345
GUIMEInductLoop::MyWrapper::getCenteringBoundary
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
Definition: GUIMEInductLoop.cpp:75