author | hegyi |
Mon, 18 Sep 2006 16:02:20 +0000 | |
changeset 148 | 5adf29662354 |
parent 98 | f60f89147531 |
child 150 | 86273bfe0e4d |
permissions | -rw-r--r-- |
1 #include "gui_writer.h"
2 #include "xml.h"
3 #include "mapstorage.h"
4 #include <lemon/xy.h>
5 #include <vector>
7 std::string GuiWriter::header()
8 {
9 return "@gui";
10 }
12 void GuiWriter::write(std::ostream& os)
13 {
14 XmlIo x(os);
15 std::map<int, xy<double> > m;
16 for (EdgeIt e(mapstorage->graph); e != INVALID; ++e)
17 {
18 int edgeid = (int)(*(mapstorage->edgemap_storage["label"]))[e];
19 m[edgeid] = mapstorage->arrow_pos[e];
20 }
21 x("arrow_pos", m);
22 }
24 GuiWriter::GuiWriter(LemonWriter& writer, MapStorage* ms) : Parent(writer), mapstorage(ms)
25 {
26 }