SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MSVTKExport.h
Go to the documentation of this file.
1 /****************************************************************************/
7 // Produce a VTK output to use with Tools like ParaView
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
10 // Copyright (C) 2001-2013 DLR (http://www.dlr.de/) and contributors
11 /****************************************************************************/
12 //
13 // This file is part of SUMO.
14 // SUMO is free software: you can redistribute it and/or modify
15 // it under the terms of the GNU General Public License as published by
16 // the Free Software Foundation, either version 3 of the License, or
17 // (at your option) any later version.
18 //
19 /****************************************************************************/
20 #ifndef MSVTKExport_h
21 #define MSVTKExport_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include <utils/common/SUMOTime.h>
34 
35 
36 // ===========================================================================
37 // class declarations
38 // ===========================================================================
39 class OutputDevice;
40 class MSEdgeControl;
41 class MSEdge;
42 class MSLane;
43 
44 
45 // ===========================================================================
46 // class definitions
47 // ===========================================================================
57 class MSVTKExport {
58 public:
66  static void write(OutputDevice& of, SUMOTime timestep);
67 
68 private:
70  MSVTKExport(const MSVTKExport&);
71 
74 
76  static std::string trim(std::string istring);
77 
79  static bool ctype_space(const char c);
80 
82  static std::string List2String(std::vector<double> input);
83 
85  static std::vector<double> getSpeed();
86 
88  static std::vector<double> getPositions();
89 
91  static std::string getOffset(int nr);
92 
93 };
94 
95 
96 #endif
97 
98 /****************************************************************************/
99 /****************************************************************************/
103 // Produce a VTK output to use with Tools like ParaView
104 /****************************************************************************/
105 // SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
106 // Copyright (C) 2001-2013 DLR (http://www.dlr.de/) and contributors
107 /****************************************************************************/
108 //
109 // This file is part of SUMO.
110 // SUMO is free software: you can redistribute it and/or modify
111 // it under the terms of the GNU General Public License as published by
112 // the Free Software Foundation, either version 3 of the License, or
113 // (at your option) any later version.
114 //
115 /****************************************************************************/
116 #ifndef MSVTKExport_h
117 #define MSVTKExport_h
118 
119 
120 // ===========================================================================
121 // included modules
122 // ===========================================================================
123 #ifdef _MSC_VER
124 #include <windows_config.h>
125 #else
126 #include <config.h>
127 #endif
128 
129 #include <utils/common/SUMOTime.h>
130 
131 
132 // ===========================================================================
133 // class declarations
134 // ===========================================================================
135 class OutputDevice;
136 class MSEdgeControl;
137 class MSEdge;
138 class MSLane;
139 
140 
141 // ===========================================================================
142 // class definitions
143 // ===========================================================================
153 class MSVTKExport {
154 public:
162  static void write(OutputDevice& of, SUMOTime timestep);
163 
164 private:
166  MSVTKExport(const MSVTKExport&);
167 
170 
172  static std::string trim(std::string istring);
173 
175  static bool ctype_space(const char c);
176 
178  static std::string List2String(std::vector<double> input);
179 
181  static std::vector<double> getSpeed();
182 
184  static std::vector<double> getPositions();
185 
187  static std::string getOffset(int nr);
188 
189 };
190 
191 
192 #endif
193 
194 /****************************************************************************/