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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
17 // The gui-version of the MSInstantInductLoop
18 /****************************************************************************/
19 #ifndef GUIInstantInductLoop_h
20 #define GUIInstantInductLoop_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #ifdef _MSC_VER
27 #include <windows_config.h>
28 #else
29 #include <config.h>
30 #endif
31 
34 #include <utils/geom/Position.h>
35 #include "GUIDetectorWrapper.h"
36 
37 
38 // ===========================================================================
39 // class definitions
40 // ===========================================================================
46 public:
54  GUIInstantInductLoop(const std::string& id, OutputDevice& od,
55  MSLane* const lane, double positionInMeters, const std::string& vTypes);
56 
57 
60 
61 
62 
67 
68 
69 public:
74  class MyWrapper : public GUIDetectorWrapper {
75  public:
77  MyWrapper(GUIInstantInductLoop& detector, double pos);
78 
80  ~MyWrapper();
81 
82 
84 
85 
94  GUIMainWindow& app, GUISUMOAbstractView& parent);
95 
96 
103 
104 
109  void drawGL(const GUIVisualizationSettings& s) const;
111 
112 
115 
116 
117  private:
120 
123 
126 
128  double myFGRotation;
129 
131  double myPosition;
132 
133  private:
135  MyWrapper(const MyWrapper&);
136 
138  MyWrapper& operator=(const MyWrapper&);
139 
140  };
141 
142 
144  mutable MFXMutex myLock;
145 
146 };
147 
148 
149 #endif
150 
151 /****************************************************************************/
152 
MFXMutex myLock
Mutex preventing parallel read/write access to internal MSInductLoop state.
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:47
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
GUIInstantInductLoop & myDetector
The wrapped detector.
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:45
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:70
Position myFGPosition
The position in full-geometry mode.
Representation of a lane in the micro simulation.
Definition: MSLane.h:77
A window containing a gl-object&#39;s parameter.
virtual GUIDetectorWrapper * buildDetectorGUIRepresentation()
Returns this detector&#39;s visualisation-wrapper.