blob: 255ac34bd8cd0a0ce8b409e50ada70f8eb2668f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#include <pgf/gd/ogdf/c/InterfaceFromOGDF.h>
#include <ogdf/energybased/multilevelmixer/ZeroPlacer.h>
struct ZeroPlacer_script :
scripting::declarations,
scripting::factory<ogdf::ZeroPlacer>
{
ogdf::ZeroPlacer* make (scripting::run_parameters* parameters) {
using namespace ogdf;
ZeroPlacer* r = new ZeroPlacer;
parameters->configure_option ("ZeroPlacer.randomRange",
&ZeroPlacer::setRandomRange, *r);
return r;
}
void declare (scripting::script s) {
using namespace scripting;
using namespace ogdf;
s.declare (key ("ZeroPlacer")
.set_module ("InitialPlacer", this)
.documentation_in ("pgf.gd.doc.ogdf.energybased.multilevelmixer.ZeroPlacer"));
s.declare (key ("ZeroPlacer.randomRange")
.type ("number")
.documentation_in ("pgf.gd.doc.ogdf.energybased.multilevelmixer.ZeroPlacer"));
}
};
|