summaryrefslogtreecommitdiffstats
path: root/src/libavoid/tests/junction01.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc.jeanmougin@telecom-paristech.fr>2018-04-29 14:25:32 +0000
committerMarc Jeanmougin <marc.jeanmougin@telecom-paristech.fr>2018-04-29 14:25:32 +0000
commitab5f8ff5869021958f4ae8b838c3d707a2e85eaa (patch)
tree4907675828a5401d013b7587538cc8541edd2764 /src/libavoid/tests/junction01.cpp
parentmoved libcroco, libuemf, libdepixelize to 3rdparty folder (diff)
downloadinkscape-ab5f8ff5869021958f4ae8b838c3d707a2e85eaa.tar.gz
inkscape-ab5f8ff5869021958f4ae8b838c3d707a2e85eaa.zip
Put adaptagrams into its own folder
Diffstat (limited to 'src/libavoid/tests/junction01.cpp')
-rw-r--r--src/libavoid/tests/junction01.cpp55
1 files changed, 0 insertions, 55 deletions
diff --git a/src/libavoid/tests/junction01.cpp b/src/libavoid/tests/junction01.cpp
deleted file mode 100644
index 24d4b5f14..000000000
--- a/src/libavoid/tests/junction01.cpp
+++ /dev/null
@@ -1,55 +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, 0);
- router->setRoutingPenalty((PenaltyType)3, 4000);
- router->setRoutingPenalty((PenaltyType)4, 105);
- router->setRoutingParameter(idealNudgingDistance, 25);
- Rectangle rect478845150(Point(50695, 51070), Point(50705, 51080));
- ShapeRef *shapeRef478845150 = new ShapeRef(router, rect478845150, 478845150);
- ShapeConnectionPin *pin = new Avoid::ShapeConnectionPin(shapeRef478845150,
- Avoid::CONNECTIONPIN_CENTRE, Avoid::ATTACH_POS_CENTRE,
- Avoid::ATTACH_POS_CENTRE, true, 0.0, Avoid::ConnDirNone);
- pin->setExclusive(false);
-
- 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(shapeRef478845150, Avoid::CONNECTIONPIN_CENTRE);
- //ConnEnd dstPt352019675(Point(50700, 51075), 15);
- new ConnRef(router, srcPt352019675, dstPt352019675, 352019675);
- ConnEnd srcPt42699400(shapeRef478845150, Avoid::CONNECTIONPIN_CENTRE);
- //ConnEnd srcPt42699400(Point(50700, 51075), 15);
- ConnEnd dstPt42699400(Point(50615, 51075), 8);
- new ConnRef(router, srcPt42699400, dstPt42699400, 42699400);
- ConnEnd srcPt94712625(Point(50710, 50550), 4);
- ConnEnd dstPt94712625(shapeRef478845150, Avoid::CONNECTIONPIN_CENTRE);
- //ConnEnd dstPt94712625(Point(50700, 51075), 15);
- 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/junction01");
- delete router;
- return 0;
-};