summaryrefslogtreecommitdiffstats
path: root/src/libcola/tests/overlappingClusters04.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/libcola/tests/overlappingClusters04.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/libcola/tests/overlappingClusters04.cpp')
-rw-r--r--src/libcola/tests/overlappingClusters04.cpp61
1 files changed, 0 insertions, 61 deletions
diff --git a/src/libcola/tests/overlappingClusters04.cpp b/src/libcola/tests/overlappingClusters04.cpp
deleted file mode 100644
index 36a85bd19..000000000
--- a/src/libcola/tests/overlappingClusters04.cpp
+++ /dev/null
@@ -1,61 +0,0 @@
-// From Aidan Delaney: a_b_ab_abc.json.svg
-// Regression test for SEGFAULT caused by specifing an invalid node index 7
-// in cluster description.
-#include <vector>
-#include <utility>
-#include "libcola/cola.h"
-using namespace cola;
-int main(void) {
- CompoundConstraints ccs;
- std::vector<Edge> es;
- EdgeLengths eLengths;
- double defaultEdgeLength=10;
- std::vector<vpsc::Rectangle*> rs;
- vpsc::Rectangle *rect = NULL;
-
- rect = new vpsc::Rectangle(0, 5, 0, 5);
- rs.push_back(rect);
-
- rect = new vpsc::Rectangle(-2, 3, -2, 3);
- rs.push_back(rect);
-
- rect = new vpsc::Rectangle(-1, 4, -1, 4);
- rs.push_back(rect);
-
- rect = new vpsc::Rectangle(1, 6, 1, 6);
- rs.push_back(rect);
-
- rect = new vpsc::Rectangle(1, 6, 1, 6);
- rs.push_back(rect);
-
-
- ConstrainedFDLayout alg(rs, es, defaultEdgeLength, eLengths);
- alg.setAvoidNodeOverlaps(true);
-
- RootCluster *cluster33771480 = new RootCluster();
- RectangularCluster *cluster33771952 = new RectangularCluster();
- cluster33771952->setPadding(Box(2));
- cluster33771952->addChildNode(1);
- cluster33771952->addChildNode(3);
- cluster33771952->addChildNode(7);
- cluster33771480->addChildCluster(cluster33771952);
-
- RectangularCluster *cluster33772496 = new RectangularCluster();
- cluster33772496->setPadding(Box(2));
- cluster33772496->addChildNode(2);
- cluster33772496->addChildNode(3);
- cluster33772496->addChildNode(7);
- cluster33771480->addChildCluster(cluster33772496);
-
- RectangularCluster *cluster33773040 = new RectangularCluster();
- cluster33773040->setPadding(Box(2));
- cluster33773040->addChildNode(7);
- cluster33771480->addChildCluster(cluster33773040);
-
- alg.setClusterHierarchy(cluster33771480);
-
- alg.setConstraints(ccs);
- alg.makeFeasible();
- //alg.outputInstanceToSVG("overlappingCLusters04");
- alg.freeAssociatedObjects();
-};