forked from Tulip-Dev/tulip
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plugins/layout/OGDF: Wrap new planar layout algorithms
- Loading branch information
Showing
3 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* | ||
* Copyright (C) 2024 The Talipot developers | ||
* | ||
* Talipot is a fork of Tulip, created by David Auber | ||
* and the Tulip development Team from LaBRI, University of Bordeaux | ||
* | ||
* See the AUTHORS file at the top-level directory of this distribution | ||
* License: GNU General Public License version 3, or any later version | ||
* See top-level LICENSE file for more information | ||
* | ||
*/ | ||
|
||
#include <ogdf/planarlayout/MixedModelLayout.h> | ||
|
||
#include <talipot/OGDFLayoutPluginBase.h> | ||
|
||
// static constexpr std::string_view paramHelp[] = {}; | ||
|
||
class OGDFMixedModelLayout : public tlp::OGDFLayoutPluginBase { | ||
|
||
public: | ||
PLUGININFORMATION("Mixed Model (OGDF)", "", "", "", "1.0", "Planar") | ||
OGDFMixedModelLayout(const tlp::PluginContext *context) | ||
: OGDFLayoutPluginBase(context, tlp::getOGDFLayoutModule<ogdf::MixedModelLayout>(context)), | ||
mixedModel(static_cast<ogdf::MixedModelLayout *>(ogdfLayoutAlgo)) {} | ||
|
||
void beforeCall() override {} | ||
|
||
private: | ||
ogdf::MixedModelLayout *mixedModel; | ||
}; | ||
|
||
PLUGIN(OGDFMixedModelLayout) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* | ||
* Copyright (C) 2024 The Talipot developers | ||
* | ||
* Talipot is a fork of Tulip, created by David Auber | ||
* and the Tulip development Team from LaBRI, University of Bordeaux | ||
* | ||
* See the AUTHORS file at the top-level directory of this distribution | ||
* License: GNU General Public License version 3, or any later version | ||
* See top-level LICENSE file for more information | ||
* | ||
*/ | ||
|
||
#include <ogdf/planarlayout/SchnyderLayout.h> | ||
|
||
#include <talipot/OGDFLayoutPluginBase.h> | ||
|
||
// static constexpr std::string_view paramHelp[] = {}; | ||
|
||
class OGDFSchnyderLayout : public tlp::OGDFLayoutPluginBase { | ||
|
||
public: | ||
PLUGININFORMATION("Schnyder (OGDF)", "", "", "", "1.0", "Planar") | ||
OGDFSchnyderLayout(const tlp::PluginContext *context) | ||
: OGDFLayoutPluginBase(context, tlp::getOGDFLayoutModule<ogdf::SchnyderLayout>(context)), | ||
schnyder(static_cast<ogdf::SchnyderLayout *>(ogdfLayoutAlgo)) {} | ||
|
||
void beforeCall() override {} | ||
|
||
private: | ||
ogdf::SchnyderLayout *schnyder; | ||
}; | ||
|
||
PLUGIN(OGDFSchnyderLayout) |