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 /****************************************************************************/
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 
GUIParameterTableWindow
A window containing a gl-object's parameter.
Definition: GUIParameterTableWindow.h:63
GUIMEInductLoop::MyWrapper::MyWrapper
MyWrapper(GUIMEInductLoop &detector, double pos)
Constructor.
Definition: GUIMEInductLoop.cpp:61
GUISUMOAbstractView
Definition: GUISUMOAbstractView.h:73
GUIMEInductLoop::MyWrapper::operator=
MyWrapper & operator=(const MyWrapper &)
Invalidated assignment operator.
MESegment
A single mesoscopic segment (cell)
Definition: MESegment.h:50
GUIDetectorWrapper
Definition: GUIDetectorWrapper.h:43
MEInductLoop.h
GUIMEInductLoop::MyWrapper::getLoop
GUIMEInductLoop & getLoop()
Returns the detector itself.
Definition: GUIMEInductLoop.cpp:171
MEInductLoop
An induction loop for mesoscopic simulation.
Definition: MEInductLoop.h:48
GUIMEInductLoop
Definition: GUIMEInductLoop.h:47
GUIMEInductLoop::MyWrapper::myPosition
double myPosition
The position on the lane.
Definition: GUIMEInductLoop.h:125
GUIMEInductLoop::~GUIMEInductLoop
~GUIMEInductLoop()
Destructor.
Definition: GUIMEInductLoop.cpp:49
GUIMEInductLoop::GUIMEInductLoop
GUIMEInductLoop(const std::string &id, MESegment *s, double position, const std::string &vTypes)
Construtor.
Definition: GUIMEInductLoop.cpp:44
GUIMEInductLoop::buildDetectorGUIRepresentation
virtual GUIDetectorWrapper * buildDetectorGUIRepresentation()
Returns this detector's visualisation-wrapper.
Definition: GUIMEInductLoop.cpp:53
GUIMEInductLoop::MyWrapper::~MyWrapper
~MyWrapper()
Destructor.
Definition: GUIMEInductLoop.cpp:72
GUIMEInductLoop::MyWrapper::getParameterWindow
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Definition: GUIMEInductLoop.cpp:85
Boundary
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:42
Position
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:39
GUIDetectorWrapper.h
GUIMEInductLoop::MyWrapper::drawGL
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Definition: GUIMEInductLoop.cpp:117
GUIMEInductLoop::MyWrapper::myDetector
GUIMEInductLoop & myDetector
The wrapped detector.
Definition: GUIMEInductLoop.h:113
Position.h
GUILane
Representation of a lane in the micro simulation (gui-version)
Definition: GUILane.h:62
GUIMainWindow
Definition: GUIMainWindow.h:47
GUIMEInductLoop::MyWrapper
Definition: GUIMEInductLoop.h:67
GUIMEInductLoop::MyWrapper::myFGRotation
double myFGRotation
The rotation in full-geometry mode.
Definition: GUIMEInductLoop.h:122
GUIMEInductLoop::MyWrapper::myFGPosition
Position myFGPosition
The position in full-geometry mode.
Definition: GUIMEInductLoop.h:119
config.h
GUIMEInductLoop::MyWrapper::myBoundary
Boundary myBoundary
The detector's boundary.
Definition: GUIMEInductLoop.h:116
GUIVisualizationSettings
Stores the information about how to visualize structures.
Definition: GUIVisualizationSettings.h:346
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:76