diff options
Diffstat (limited to 'graphics/pgf/base/source/LongestPathRanking_script.h')
-rw-r--r-- | graphics/pgf/base/source/LongestPathRanking_script.h | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/graphics/pgf/base/source/LongestPathRanking_script.h b/graphics/pgf/base/source/LongestPathRanking_script.h deleted file mode 100644 index ca2e634485..0000000000 --- a/graphics/pgf/base/source/LongestPathRanking_script.h +++ /dev/null @@ -1,50 +0,0 @@ -#include <pgf/gd/ogdf/c/InterfaceFromOGDF.h> -#include <ogdf/layered/LongestPathRanking.h> - -struct LongestPathRanking_script : - scripting::declarations, - scripting::factory<ogdf::LongestPathRanking> -{ - - ogdf::LongestPathRanking* make (scripting::run_parameters* parameters) { - using namespace ogdf; - LongestPathRanking* r = new LongestPathRanking; - - parameters->configure_option ("LongestPathRanking.separateDeg0Layer", - &LongestPathRanking::separateDeg0Layer, *r); - parameters->configure_option ("LongestPathRanking.separateMultiEdges", - &LongestPathRanking::separateMultiEdges, *r); - parameters->configure_option ("LongestPathRanking.optimizeEdgeLength", - &LongestPathRanking::optimizeEdgeLength, *r); - - parameters->configure_module ("AcyclicSubgraphModule", - &LongestPathRanking::setSubgraph, *r); - - return r; - } - - void declare (scripting::script s) { - using namespace scripting; - using namespace ogdf; - s.declare (key ("LongestPathRanking") - .documentation_in ("pgf.gd.doc.ogdf.layered.LongestPathRanking") - .set_module ("RankingModule", this)); - - s.declare (key ("LongestPathRanking.separateDeg0Layer") - .type ("boolean") - .initial ("true") - .documentation_in ("pgf.gd.doc.ogdf.layered.LongestPathRanking")); - - s.declare (key ("LongestPathRanking.separateMultiEdges") - .type ("boolean") - .initial ("true") - .documentation_in ("pgf.gd.doc.ogdf.layered.LongestPathRanking")); - - s.declare (key ("LongestPathRanking.optimizeEdgeLength") - .type ("boolean") - .initial ("true") - .documentation_in ("pgf.gd.doc.ogdf.layered.LongestPathRanking")); - } -}; - - |