Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GUIMEInductLoop.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2001-2025 German Aerospace Center (DLR) and others.
4// This program and the accompanying materials are made available under the
5// terms of the Eclipse Public License 2.0 which is available at
6// https://www.eclipse.org/legal/epl-2.0/
7// This Source Code may also be made available under the following Secondary
8// Licenses when the conditions for such availability set forth in the Eclipse
9// Public License 2.0 are satisfied: GNU General Public License, version 2
10// or later which is available at
11// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13/****************************************************************************/
18// The gui-version of the MEInductLoop
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
24#include <utils/geom/Position.h>
26
27
28// ===========================================================================
29// class declarations
30// ===========================================================================
31class GUILane;
32class MESegment;
33
34
35// ===========================================================================
36// class definitions
37// ===========================================================================
45public:
47 GUIMEInductLoop(const std::string& id, MESegment* s,
48 double position,
49 const std::string name, const std::string& vTypes,
50 const std::string& nextEdges,
51 int detectPersons, bool show);
52
55
60
61
62public:
68 public:
70 MyWrapper(GUIMEInductLoop& detector, double pos);
71
73 ~MyWrapper();
74
76
77
86
92 void drawGL(const GUIVisualizationSettings& s) const override;
93
95 double getExaggeration(const GUIVisualizationSettings& s) const override;
96
102 Boundary getCenteringBoundary() const override;
104
107
108 private:
111
114
117
120
123
124 private:
127
130
131 };
132
133};
A class that stores a 2D geometrical boundary.
Definition Boundary.h:39
Representation of a lane in the micro simulation (gui-version)
Definition GUILane.h:60
GUIMEInductLoop & myDetector
The wrapped detector.
MyWrapper & operator=(const MyWrapper &)
Invalidated assignment operator.
double getExaggeration(const GUIVisualizationSettings &s) const override
return exaggeration associated with this GLObject
Boundary myBoundary
The detector's boundary.
Position myFGPosition
The position in full-geometry mode.
Boundary getCenteringBoundary() const override
Returns the boundary to which the view shall be centered in order to show the object.
double myPosition
The position on the lane.
GUIMEInductLoop & getLoop()
Returns the detector itself.
double myFGRotation
The rotation in full-geometry mode.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent) override
Returns an own parameter window.
MyWrapper(const MyWrapper &)
Invalidated copy constructor.
void drawGL(const GUIVisualizationSettings &s) const override
Draws the object.
virtual GUIDetectorWrapper * buildDetectorGUIRepresentation()
Returns this detector's visualisation-wrapper.
~GUIMEInductLoop()
Destructor.
A window containing a gl-object's parameter.
Stores the information about how to visualize structures.
An induction loop for mesoscopic simulation.
A single mesoscopic segment (cell)
Definition MESegment.h:50
A point in 2D or 3D with translation and scaling methods.
Definition Position.h:37