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 /****************************************************************************/
5 // Produce a VTK output to use with Tools like ParaView
6 /****************************************************************************/
7 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
8 // Copyright (C) 2001-2013 DLR (http://www.dlr.de/) and contributors
9 /****************************************************************************/
10 //
11 // This file is part of SUMO.
12 // SUMO is free software: you can redistribute it and/or modify
13 // it under the terms of the GNU General Public License as published by
14 // the Free Software Foundation, either version 3 of the License, or
15 // (at your option) any later version.
16 //
17 /****************************************************************************/
18 #ifndef MSVTKExport_h
19 #define MSVTKExport_h
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #ifdef _MSC_VER
26 #include <windows_config.h>
27 #else
28 #include <config.h>
29 #endif
30 
31 #include <utils/common/SUMOTime.h>
32 
33 
34 // ===========================================================================
35 // class declarations
36 // ===========================================================================
37 class OutputDevice;
38 class MSEdgeControl;
39 class MSEdge;
40 class MSLane;
41 
42 
43 // ===========================================================================
44 // class definitions
45 // ===========================================================================
55 class MSVTKExport {
56 public:
64  static void write(OutputDevice& of, SUMOTime timestep);
65 
66 private:
68  MSVTKExport(const MSVTKExport&);
69 
72 
74  static std::string trim(std::string istring);
75 
77  static bool ctype_space(const char c);
78 
80  static std::string List2String(std::vector<double> input);
81 
83  static std::vector<double> getSpeed();
84 
86  static std::vector<double> getPositions();
87 
89  static std::string getOffset(int nr);
90 
91 };
92 
93 
94 #endif
95 
96 /****************************************************************************/
97 /****************************************************************************/
101 // Produce a VTK output to use with Tools like ParaView
102 /****************************************************************************/
103 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
104 // Copyright (C) 2001-2013 DLR (http://www.dlr.de/) and contributors
105 /****************************************************************************/
106 //
107 // This file is part of SUMO.
108 // SUMO is free software: you can redistribute it and/or modify
109 // it under the terms of the GNU General Public License as published by
110 // the Free Software Foundation, either version 3 of the License, or
111 // (at your option) any later version.
112 //
113 /****************************************************************************/
114 #ifndef MSVTKExport_h
115 #define MSVTKExport_h
116 
117 
118 // ===========================================================================
119 // included modules
120 // ===========================================================================
121 #ifdef _MSC_VER
122 #include <windows_config.h>
123 #else
124 #include <config.h>
125 #endif
126 
127 #include <utils/common/SUMOTime.h>
128 
129 
130 // ===========================================================================
131 // class declarations
132 // ===========================================================================
133 class OutputDevice;
134 class MSEdgeControl;
135 class MSEdge;
136 class MSLane;
137 
138 
139 // ===========================================================================
140 // class definitions
141 // ===========================================================================
151 class MSVTKExport {
152 public:
160  static void write(OutputDevice& of, SUMOTime timestep);
161 
162 private:
164  MSVTKExport(const MSVTKExport&);
165 
168 
170  static std::string trim(std::string istring);
171 
173  static bool ctype_space(const char c);
174 
176  static std::string List2String(std::vector<double> input);
177 
179  static std::vector<double> getSpeed();
180 
182  static std::vector<double> getPositions();
183 
185  static std::string getOffset(int nr);
186 
187 };
188 
189 
190 #endif
191 
192 /****************************************************************************/