Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
MixedModelLayout.h
Go to the documentation of this file.
1
32#pragma once
33
39
40#include <memory>
41
42namespace ogdf {
43
114public:
117
118 virtual ~MixedModelLayout() { }
119
132
134 void setShellingOrder(ShellingOrderModule* pOrder) { m_compOrder.reset(pOrder); }
135
140
142 void setEmbedder(EmbedderModule* pEmbedder) { m_embedder.reset(pEmbedder); }
143
145
146protected:
149 IPoint& boundingBox, bool fixEmbedding) override;
150
151private:
152 std::unique_ptr<EmbedderModule> m_embedder;
153 std::unique_ptr<AugmentationModule> m_augmenter;
154 std::unique_ptr<ShellingOrderModule> m_compOrder;
155 std::unique_ptr<MixedModelCrossingsBeautifierModule> m_crossingsBeautifier;
156};
157
158}
Declaration of interface for graph augmentation algorithms.
Defines ogdf::EmbedderModule.
Declaration of interface for grid layout algorithms.
Declaration of interface for mixed-model crossings beautifier algorithms.
Declares the base class ShellingOrderModule for modules that compute a shelling order of a graph.
Class for adjacency list elements.
Definition Graph_d.h:79
The base class for graph augmentation algorithms.
Base class for embedder algorithms.
Representation of a graph's grid layout.
Definition GridLayout.h:46
Base class for grid layout algorithms operating on a PlanRep.
The base class for Mixed-Model crossings beautifier algorithms.
Implementation of the Mixed-Model layout algorithm.
virtual void doCall(PlanRep &PG, adjEntry adjExternal, GridLayout &gridLayout, IPoint &boundingBox, bool fixEmbedding) override
Implements the algorithm call.
void setShellingOrder(ShellingOrderModule *pOrder)
Sets the shelling order module.
std::unique_ptr< EmbedderModule > m_embedder
The planar embedder module.
MixedModelLayout()
Constructs an instance of the Mixed-Model layout algorithm.
std::unique_ptr< ShellingOrderModule > m_compOrder
The shelling order module.
std::unique_ptr< MixedModelCrossingsBeautifierModule > m_crossingsBeautifier
The crossings beautifier module.
void setCrossingsBeautifier(MixedModelCrossingsBeautifierModule *pBeautifier)
Sets the crossings beautifier module.
void setAugmenter(AugmentationModule *pAugmenter)
Sets the augmentation module.
void setEmbedder(EmbedderModule *pEmbedder)
Sets the module option for the graph embedding algorithm.
std::unique_ptr< AugmentationModule > m_augmenter
The augmentation module.
Planarized representations (of a connected component) of a graph.
Definition PlanRep.h:57
Base class for modules that compute a shelling order of a graph.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition config.h:101
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.