summaryrefslogtreecommitdiff
path: root/graphics/pgf/base/source/FMMMLayout_script.h
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-01-16 03:03:27 +0000
committerNorbert Preining <norbert@preining.info>2023-01-16 03:03:27 +0000
commit6f9e1680085e7bb4d258f6f8116369d122e196e1 (patch)
tree9ac0ecb239240d1d672b188f29c1479de215074b /graphics/pgf/base/source/FMMMLayout_script.h
parentb8345f39630408bb198e7636381ce4240154ca9b (diff)
CTAN sync 202301160303
Diffstat (limited to 'graphics/pgf/base/source/FMMMLayout_script.h')
-rw-r--r--graphics/pgf/base/source/FMMMLayout_script.h44
1 files changed, 0 insertions, 44 deletions
diff --git a/graphics/pgf/base/source/FMMMLayout_script.h b/graphics/pgf/base/source/FMMMLayout_script.h
deleted file mode 100644
index bdaf26bf67..0000000000
--- a/graphics/pgf/base/source/FMMMLayout_script.h
+++ /dev/null
@@ -1,44 +0,0 @@
-#include <pgf/gd/ogdf/c/InterfaceFromOGDF.h>
-#include <ogdf/energybased/FMMMLayout.h>
-
-struct FMMMLayout_script :
- scripting::declarations,
- scripting::ogdf_runner
-{
- void run () {
- using namespace ogdf;
- FMMMLayout layout;
-
- layout.newInitialPlacement(false);
- layout.qualityVersusSpeed(FMMMLayout::qvsGorgeousAndEfficient);
-
- parameters->configure_option ("FMMMLayout.unitEdgeLength",
- &FMMMLayout::unitEdgeLength, layout);
- parameters->configure_option ("FMMMLayout.randSeed",
- &FMMMLayout::randSeed, layout);
-
- layout.call (graph_attributes);
- }
-
- void declare (scripting::script s) {
- using namespace scripting;
- using namespace ogdf;
- s.declare (key ("FMMMLayout")
- .precondition ("connected")
- .algorithm (this)
- .documentation_in ("pgf.gd.doc.ogdf.energybased.FMMMLayout"));
-
- s.declare (key ("FMMMLayout.randSeed")
- .type ("number")
- .initial ("42")
- .alias ("random seed")
- .documentation_in ("pgf.gd.doc.ogdf.energybased.FMMMLayout"));
-
- s.declare (key ("FMMMLayout.unitEdgeLength")
- .type ("length")
- .initial ("1cm")
- .alias_function ("function (o) return o['node pre sep'] + o['node post sep'] end")
- .documentation_in ("pgf.gd.doc.ogdf.energybased.FMMMLayout"));
- }
-
-};