Added two new classes.
1 #include "gui_writer.h"
3 #include "mapstorage.h"
4 #include <lemon/dim2.h>
7 std::string GuiWriter::header()
12 void GuiWriter::write(std::ostream& os)
16 for (EdgeIt e(mapstorage->graph); e != INVALID; ++e)
18 int edgeid = (int)(*(mapstorage->edgemap_storage["label"]))[e];
19 m[edgeid] = mapstorage->arrow_pos[e];
23 std::map<int, std::string> nm;
24 for(int i=0;i<NODE_PROPERTY_NUM;i++)
26 nm[i]=mapstorage->active_nodemaps[i];
28 x("active_nodemaps", nm);
30 std::map<int, std::string> em;
31 for(int i=0;i<EDGE_PROPERTY_NUM;i++)
33 em[i]=mapstorage->active_edgemaps[i];
35 x("active_edgemaps", em);
38 GuiWriter::GuiWriter(LemonWriter& writer, MapStorage* ms) : Parent(writer), mapstorage(ms)