LoopEdge improvements.
1 #include "gui_reader.h"
3 #include "mapstorage.h"
4 #include <lemon/dim2.h>
7 bool GuiReader::header(const std::string& line)
9 std::istringstream ls(line);
12 return head == "@gui";
15 void GuiReader::read(std::istream& is)
21 if ((int)m.size() != countEdges(mapstorage->graph)) return;
23 for (EdgeIt e(mapstorage->graph); e != INVALID; ++e)
25 int edgeid = (int)(*mapstorage->edgemap_storage["label"])[e];
26 mapstorage->arrow_pos.set(e, m[edgeid]);
28 mapstorage->ArrowPosReadOK();
31 GuiReader::GuiReader(LemonReader& reader, MapStorage* ms) : Parent(reader), mapstorage(ms)