+ else if (strcmp(buffer, "POLYLINE") == 0)
+ {
+ long int size;
+ std::vector<Point> pts;
+ uint32_t color;
+ float thickness;
+ int style;
+
+ fscanf(file, "(%li)", &size);
+ fscanf(file, " (%i, %f, %i)\n", &color, &thickness, &style);
+
+ for(int i=0; i<size; i++)
+ {
+ Point p;
+ fscanf(file, "(%lf,%lf,%lf)\n", &p.x, &p.y, &p.b);
+ pts.push_back(p);
+ }
+
+ obj = (Object *)new Polyline(pts, thickness, color, style);
+ }