[Marble-commits] KDE/kdeedu/marble/src/plugins/runner/monav
Dennis Nienhüser
earthwings at gentoo.org
Fri Oct 8 23:20:36 CEST 2010
SVN commit 1183963 by nienhueser:
Update to monav release 0.2. Please switch from trunk to tags/0.2 and recreate your monav maps, if any. Both signals.h and the map data format should be stable now for the 0.2 release.
M +9 -3 signals.h
--- trunk/KDE/kdeedu/marble/src/plugins/runner/monav/signals.h #1183962:1183963
@@ -51,15 +51,19 @@
};
struct RoutingDaemonEdge {
- unsigned length;
- unsigned name;
- unsigned type;
+ unsigned length; // length of the edge == number of edges it represents == number of nodes - 1
+ unsigned name; // name ID of the edge
+ unsigned type; // type ID of the edge
+ unsigned seconds; // travel time metric for the edge
+ bool branchingPossible; // is it possible to choose between more than one subsequent edge ( turning around on bidirectional edges does not count )
friend QDataStream& operator<< ( QDataStream& out, const RoutingDaemonEdge& edge )
{
out << edge.length;
out << edge.name;
out << edge.type;
+ out << edge.seconds;
+ out << edge.branchingPossible;
return out;
}
@@ -68,6 +72,8 @@
in >> edge.length;
in >> edge.name;
in >> edge.type;
+ in >> edge.seconds;
+ in >> edge.branchingPossible;
return in;
}
};
More information about the Marble-commits
mailing list