Lines Matching defs:fp
1329 FILE *fp = stdout;
1330 fprintf(fp, "\nVisibility Graph info:\n");
1331 fprintf(fp, "----------------------\n");
1385 fprintf(fp, "Number of shapes: %d\n", st_shapes);
1386 fprintf(fp, "Number of vertices: %d (%d real, %d endpoints)\n",
1388 fprintf(fp, "Number of orhtog_vis_edges: %d\n", st_orthogonal_visedges);
1389 fprintf(fp, "Number of vis_edges: %d (%d valid [%d normal, %d endpt], "
1394 fprintf(fp, "----------------------\n");
1395 fprintf(fp, "checkVisEdge tally: %d\n", st_checked_edges);
1396 fprintf(fp, "----------------------\n");
1398 fprintf(fp, "ADDS: "); timers.Print(tmAdd, fp);
1399 fprintf(fp, "DELS: "); timers.Print(tmDel, fp);
1400 fprintf(fp, "MOVS: "); timers.Print(tmMov, fp);
1401 fprintf(fp, "***S: "); timers.Print(tmSev, fp);
1402 fprintf(fp, "PTHS: "); timers.Print(tmPth, fp);
1403 fprintf(fp, "OrthogGraph: "); timers.Print(tmOrthogGraph, fp);
1404 fprintf(fp, "OrthogRoute: "); timers.Print(tmOrthogRoute, fp);
1405 fprintf(fp, "OrthogCentre: "); timers.Print(tmOrthogCentre, fp);
1406 fprintf(fp, "OrthogNudge: "); timers.Print(tmOrthogNudge, fp);
1407 fprintf(fp, "\n");
1499 FILE *fp = fopen(filename.c_str(), "w");
1501 if (fp == NULL)
1542 fprintf(fp, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
1543 fprintf(fp, "<svg xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" xmlns=\"http://www.w3.org/2000/svg\" width=\"100%%\" height=\"100%%\" viewBox=\"%g %g %g %g\">\n", minX, minY, maxX - minX, maxY - minY);
1546 fprintf(fp, "<!-- Source code to generate this instance:\n");
1547 fprintf(fp, "#include \"libavoid/libavoid.h\"\n");
1548 fprintf(fp, "using namespace Avoid;\n");
1549 fprintf(fp, "int main(void) {\n");
1550 fprintf(fp, " Router *router = new Router(\n");
1551 fprintf(fp, " PolyLineRouting | OrthogonalRouting);\n");
1554 fprintf(fp, " router->setRoutingPenalty((PenaltyType)%lu, %g);\n",
1557 fprintf(fp, " router->setOrthogonalNudgeDistance(%g);\n\n",
1563 fprintf(fp, " Polygon poly%u(%lu);\n",
1567 fprintf(fp, " poly%u.ps[%lu] = Point(%g, %g);\n",
1571 fprintf(fp, " ShapeRef *shapeRef%u = new ShapeRef(router, poly%u, "
1573 fprintf(fp, " router->addShape(shapeRef%u);\n\n", shRef->id());
1580 fprintf(fp, " ConnRef *connRef%u = new ConnRef(router, %u);\n",
1584 fprintf(fp, " ConnEnd srcPt%u(Point(%g, %g), %u);\n",
1587 fprintf(fp, " connRef%u->setSourceEndpoint(srcPt%u);\n",
1592 fprintf(fp, " ConnEnd dstPt%u(Point(%g, %g), %u);\n",
1595 fprintf(fp, " connRef%u->setDestEndpoint(dstPt%u);\n",
1598 fprintf(fp, " connRef%u->setRoutingType((ConnType)%u);\n\n",
1602 fprintf(fp, " router->processTransaction();\n");
1603 fprintf(fp, " router->outputInstanceToSVG();\n");
1604 fprintf(fp, " delete router;\n");
1605 fprintf(fp, " return 0;\n");
1606 fprintf(fp, "};\n");
1607 fprintf(fp, "-->\n");
1610 fprintf(fp, "<g inkscape:groupmode=\"layer\" "
1617 fprintf(fp, "<path id=\"poly-%u\" style=\"stroke-width: 1px; "
1622 fprintf(fp, "%c %g,%g ", ((i == 0) ? 'M' : 'L'),
1625 fprintf(fp, "Z\" />\n");
1628 fprintf(fp, "</g>\n");
1630 fprintf(fp, "<g inkscape:groupmode=\"layer\" "
1640 fprintf(fp, "<rect id=\"rect-%u\" x=\"%g\" y=\"%g\" width=\"%g\" height=\"%g\" "
1645 fprintf(fp, "</g>\n");
1648 fprintf(fp, "<g inkscape:groupmode=\"layer\" "
1652 fprintf(fp, "<g inkscape:groupmode=\"layer\" "
1674 fprintf(fp, "<path d=\"M %g,%g L %g,%g\" "
1680 fprintf(fp, "</g>\n");
1682 fprintf(fp, "<g inkscape:groupmode=\"layer\" "
1704 fprintf(fp, "<path d=\"M %g,%g L %g,%g\" "
1710 fprintf(fp, "</g>\n");
1711 fprintf(fp, "</g>\n");
1713 fprintf(fp, "<g inkscape:groupmode=\"layer\" "
1730 fprintf(fp, "<path d=\"M %g,%g L %g,%g\" "
1736 fprintf(fp, "</g>\n");
1738 fprintf(fp, "<g inkscape:groupmode=\"layer\" "
1750 fprintf(fp, "<path id=\"raw-%u\" d=\"M %g,%g ", connRef->id(),
1754 fprintf(fp, "L %g,%g ", route.ps[i].x, route.ps[i].y);
1756 fprintf(fp, "\" ");
1759 fprintf(fp, "debug=\"src: %d dst: %d\" ",
1763 fprintf(fp, "style=\"fill: none; stroke: black; "
1769 fprintf(fp, "</g>\n");
1771 fprintf(fp, "<g inkscape:groupmode=\"layer\" "
1783 fprintf(fp, "<path id=\"curved-%u\" d=\"M %g,%g ", connRef->id(),
1789 fprintf(fp, "%c %g,%g %g,%g %g,%g", route.ts[i],
1797 fprintf(fp, "%c %g,%g ", route.ts[i],
1801 fprintf(fp, "\" ");
1804 fprintf(fp, "debug=\"src: %d dst: %d\" ",
1808 fprintf(fp, "style=\"fill: none; stroke: black; "
1814 fprintf(fp, "</g>\n");
1817 fprintf(fp, "<g inkscape:groupmode=\"layer\" "
1828 fprintf(fp, "<path id=\"disp-%u\" d=\"M %g,%g ", connRef->id(),
1832 fprintf(fp, "L %g,%g ", route.ps[i].x, route.ps[i].y);
1834 fprintf(fp, "\" ");
1837 fprintf(fp, "debug=\"src: %d dst: %d\" ",
1841 fprintf(fp, "style=\"fill: none; stroke: black; "
1847 fprintf(fp, "</g>\n");
1850 fprintf(fp, "</svg>\n");
1851 fclose(fp);