Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MSVTKExport.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2012-2024 German Aerospace Center (DLR) and others.
4// This program and the accompanying materials are made available under the
5// terms of the Eclipse Public License 2.0 which is available at
6// https://www.eclipse.org/legal/epl-2.0/
7// This Source Code may also be made available under the following Secondary
8// Licenses when the conditions for such availability set forth in the Eclipse
9// Public License 2.0 are satisfied: GNU General Public License, version 2
10// or later which is available at
11// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13/****************************************************************************/
18// Produce a VTK output to use with Tools like ParaView
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
24
25
26// ===========================================================================
27// class declarations
28// ===========================================================================
29class OutputDevice;
30class MSEdgeControl;
31class MSEdge;
32class MSLane;
33
34
35// ===========================================================================
36// class definitions
37// ===========================================================================
48public:
56 static void write(OutputDevice& of, SUMOTime timestep);
57
58private:
61
64
66 static std::string trim(std::string istring);
67
69 static bool ctype_space(const char c);
70
72 static std::string List2String(std::vector<double> input);
73
75 static std::vector<double> getSpeed();
76
78 static std::vector<double> getPositions();
79
81 static std::string getOffset(int nr);
82
83};
long long int SUMOTime
Definition GUI.h:36
Stores edges and lanes, performs moving of vehicle.
A road/street connecting two junctions.
Definition MSEdge.h:77
Representation of a lane in the micro simulation.
Definition MSLane.h:84
Produce a VTK output to use with Tools like ParaView.
Definition MSVTKExport.h:47
static bool ctype_space(const char c)
Checks if there is a whitespace.
static void write(OutputDevice &of, SUMOTime timestep)
Produce a VTK output to use with Tools like ParaView.
static std::string List2String(std::vector< double > input)
Get a comma separated String from a Vector.
static std::string trim(std::string istring)
Deletes the whitespaces at the end of a String.
MSVTKExport(const MSVTKExport &)
Invalidated copy constructor.
static std::vector< double > getPositions()
Get a Vector of the Positions (x,y,z) of each vehicle in the actual timestep.
MSVTKExport & operator=(const MSVTKExport &)
Invalidated assignment operator.
static std::vector< double > getSpeed()
Get a Vector with the speed values of each vehicle in the actual timestep.
static std::string getOffset(int nr)
Get a String with the indexes of all vehicles (needed in the VTk File)
Static storage of an output device and its base (abstract) implementation.