From ab5f8ff5869021958f4ae8b838c3d707a2e85eaa Mon Sep 17 00:00:00 2001 From: Marc Jeanmougin Date: Sun, 29 Apr 2018 16:25:32 +0200 Subject: Put adaptagrams into its own folder --- src/libavoid/tests/tjunct.cpp | 48 ------------------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 src/libavoid/tests/tjunct.cpp (limited to 'src/libavoid/tests/tjunct.cpp') diff --git a/src/libavoid/tests/tjunct.cpp b/src/libavoid/tests/tjunct.cpp deleted file mode 100644 index 656d0de27..000000000 --- a/src/libavoid/tests/tjunct.cpp +++ /dev/null @@ -1,48 +0,0 @@ -#include "libavoid/libavoid.h" -using namespace Avoid; -int main(void) { - Router *router = new Router(OrthogonalRouting); - router->setRoutingPenalty((PenaltyType)0, 50); - router->setRoutingPenalty((PenaltyType)1, 0); - router->setRoutingPenalty((PenaltyType)2, 200); - router->setRoutingPenalty((PenaltyType)3, 4000); - router->setRoutingPenalty((PenaltyType)4, 105); - router->setRoutingParameter(idealNudgingDistance, 25); - - JunctionRef *jRef1 = new JunctionRef(router, Point(50700, 51075)); - - Rectangle rect92712048(Point(51246, 50475), Point(51304, 50585)); - new ShapeRef(router, rect92712048, 92712048); - Rectangle rect23127921(Point(50365, 50766), Point(50485, 50834)); - new ShapeRef(router, rect23127921, 23127921); - Rectangle rect159957148(Point(51740, 50891), Point(51860, 50959)); - new ShapeRef(router, rect159957148, 159957148); - Rectangle rect1350214(Point(50375, 51015), Point(50625, 51135)); - new ShapeRef(router, rect1350214, 1350214); - Rectangle rect247197258(Point(50265, 51046), Point(50375, 51104)); - new ShapeRef(router, rect247197258, 247197258); - Rectangle rect281096654(Point(50700, 50390), Point(51000, 50610)); - new ShapeRef(router, rect281096654, 281096654); - ConnEnd srcPt342420237(Point(50425, 50800), 15); - ConnEnd dstPt342420237(Point(50710, 50450), 4); - new ConnRef(router, srcPt342420237, dstPt342420237, 342420237); - ConnEnd srcPt352019675(Point(50990, 50500), 8); - ConnEnd dstPt352019675(jRef1); - new ConnRef(router, srcPt352019675, dstPt352019675, 352019675); - ConnEnd srcPt42699400(jRef1); - ConnEnd dstPt42699400(Point(50615, 51075), 8); - new ConnRef(router, srcPt42699400, dstPt42699400, 42699400); - ConnEnd srcPt94712625(Point(50710, 50550), 4); - ConnEnd dstPt94712625(jRef1); - new ConnRef(router, srcPt94712625, dstPt94712625, 94712625); - ConnEnd srcPt92802970(Point(50990, 50450), 8); - ConnEnd dstPt92802970(Point(51275, 50485), 1); - new ConnRef(router, srcPt92802970, dstPt92802970, 92802970); - ConnEnd srcPt716502036(Point(50710, 50500), 4); - ConnEnd dstPt716502036(Point(51800, 50925), 15); - new ConnRef(router, srcPt716502036, dstPt716502036, 716502036); - router->processTransaction(); - router->outputDiagram("output/tjunct"); - delete router; - return 0; -}; -- cgit v1.2.3