Eclipse SUMO - Simulation of Urban MObility
GUIInstantInductLoop.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 MSInstantInductLoop
16 /****************************************************************************/
17 #ifndef GUIInstantInductLoop_h
18 #define GUIInstantInductLoop_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include <fx.h>
28 #include <utils/geom/Position.h>
29 #include "GUIDetectorWrapper.h"
30 
31 
32 // ===========================================================================
33 // class definitions
34 // ===========================================================================
40 public:
48  GUIInstantInductLoop(const std::string& id, OutputDevice& od,
49  MSLane* const lane, double positionInMeters, const std::string& vTypes);
50 
51 
54 
55 
56 
61 
62 
63 public:
68  class MyWrapper : public GUIDetectorWrapper {
69  public:
71  MyWrapper(GUIInstantInductLoop& detector, double pos);
72 
74  ~MyWrapper();
75 
76 
78 
79 
88  GUIMainWindow& app, GUISUMOAbstractView& parent);
89 
90 
97 
98 
103  void drawGL(const GUIVisualizationSettings& s) const;
105 
106 
109 
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 
138  mutable FXMutex myLock;
139 
140 };
141 
142 
143 #endif
144 
145 /****************************************************************************/
146 
double myFGRotation
The rotation in full-geometry mode.
Stores the information about how to visualize structures.
MyWrapper & operator=(const MyWrapper &)
Invalidated assignment operator.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
An instantaneous induction loop.
Boundary myBoundary
The detector&#39;s boundary.
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:42
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
GUIInstantInductLoop & myDetector
The wrapped detector.
FXMutex myLock
Mutex preventing parallel read/write access to internal MSInductLoop state.
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:39
GUIInstantInductLoop(const std::string &id, OutputDevice &od, MSLane *const lane, double positionInMeters, const std::string &vTypes)
Constructor.
GUIInstantInductLoop & getLoop()
Returns the detector itself.
~GUIInstantInductLoop()
Destructor.
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
The gui-version of the MSInstantInductLoop.
double myPosition
The position on the lane.
A MSInductLoop-visualiser.
MyWrapper(GUIInstantInductLoop &detector, double pos)
Constructor.
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:64
Position myFGPosition
The position in full-geometry mode.
Representation of a lane in the micro simulation.
Definition: MSLane.h:83
A window containing a gl-object&#39;s parameter.
virtual GUIDetectorWrapper * buildDetectorGUIRepresentation()
Returns this detector&#39;s visualisation-wrapper.