summaryrefslogtreecommitdiff
path: root/graphics/pgf/base/source/BalloonLayout_script.h
blob: 311bee3e092d70233b941981460091142934d37a (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/misclayout/BalloonLayout.h>

struct BalloonLayout_script :
  scripting::declarations,
  scripting::ogdf_runner
{
  void run () {
    using namespace ogdf;
    BalloonLayout layout;
    
    parameters->configure_option ("BalloonLayout.evenAngles",
				  &BalloonLayout::setEvenAngles, layout);
    
    layout.call (graph_attributes);
  }
  
  void declare (scripting::script s) {
    using namespace scripting;
    using namespace ogdf;
    
    s.declare (key ("BalloonLayout")
	       .precondition ("connected")
	       .algorithm (this)
	       .documentation_in ("pgf.gd.doc.ogdf.misclayout.BalloonLayout"));

    s.declare (key ("BalloonLayout.evenAngles")
	       .type ("boolean")
	       .documentation_in ("pgf.gd.doc.ogdf.misclayout.BalloonLayout"));
  }
};