SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GUIE3Collector.h
Go to the documentation of this file.
1 /****************************************************************************/
9 // The gui-version of a MSE3Collector
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
12 // Copyright (C) 2001-2013 DLR (http://www.dlr.de/) and contributors
13 /****************************************************************************/
14 //
15 // This file is part of SUMO.
16 // SUMO is free software: you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation, either version 3 of the License, or
19 // (at your option) any later version.
20 //
21 /****************************************************************************/
22 #ifndef GUIE3Collector_h
23 #define GUIE3Collector_h
24 
25 
26 // ===========================================================================
27 // included modules
28 // ===========================================================================
29 #ifdef _MSC_VER
30 #include <windows_config.h>
31 #else
32 #include <config.h>
33 #endif
34 
35 #include <string>
36 #include <vector>
37 #include "GUIDetectorWrapper.h"
41 
42 
43 // ===========================================================================
44 // class definitions
45 // ===========================================================================
53 class GUIE3Collector : public MSE3Collector {
54 public:
56  GUIE3Collector(const std::string& id,
57  const CrossSectionVector& entries, const CrossSectionVector& exits,
58  SUMOReal haltingSpeedThreshold,
59  SUMOTime haltingTimeThreshold);
60 
63 
64 
68  const CrossSectionVector& getEntries() const;
69 
70 
74  const CrossSectionVector& getExits() const;
75 
76 
82 
83 
84 public:
89  class MyWrapper : public GUIDetectorWrapper {
90  public:
92  MyWrapper(GUIE3Collector& detector);
93 
95  ~MyWrapper();
96 
97 
99 
100 
109  GUIMainWindow& app, GUISUMOAbstractView& parent);
110 
111 
118 
119 
124  void drawGL(const GUIVisualizationSettings& s) const;
126 
127 
130 
131 
132  protected:
141  };
142 
143  protected:
146 
148  void drawSingleCrossing(const Position& pos, SUMOReal rot,
149  SUMOReal upscale) const;
150 
151  private:
154 
157 
159  typedef std::vector<SingleCrossingDefinition> CrossingDefinitions;
160 
163 
166 
167  };
168 
169 };
170 
171 
172 #endif
173 
174 /****************************************************************************/
175