Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

MixedModelLayout.h
Go to the documentation of this file.
1 
32 #pragma once
33 
35 #include <memory>
40 
41 namespace ogdf {
42 
113 {
114 public:
117 
118  virtual ~MixedModelLayout() { }
119 
131  void setAugmenter(AugmentationModule *pAugmenter) {
132  m_augmenter.reset(pAugmenter);
133  }
134 
137  m_compOrder.reset(pOrder);
138  }
139 
142  m_crossingsBeautifier.reset(pBeautifier);
143  }
144 
146  void setEmbedder(EmbedderModule *pEmbedder) {
147  m_embedder.reset(pEmbedder);
148  }
149 
151 
152 protected:
154  virtual void doCall(
155  PlanRep &PG,
156  adjEntry adjExternal,
157  GridLayout &gridLayout,
158  IPoint &boundingBox,
159  bool fixEmbedding) override;
160 
161 private:
162  std::unique_ptr<EmbedderModule> m_embedder;
163  std::unique_ptr<AugmentationModule> m_augmenter;
164  std::unique_ptr<ShellingOrderModule> m_compOrder;
165  std::unique_ptr<MixedModelCrossingsBeautifierModule> m_crossingsBeautifier;
166 };
167 
168 }
Representation of a graph&#39;s grid layout.
Definition: GridLayout.h:46
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
Base class for modules that compute a shelling order of a graph.
void setEmbedder(EmbedderModule *pEmbedder)
Sets the module option for the graph embedding algorithm.
void setAugmenter(AugmentationModule *pAugmenter)
Sets the augmentation module.
The base class for Mixed-Model crossings beautifier algorithms.
Base class for grid layout algorithms operating on a PlanRep.
Defines ogdf::EmbedderModule.
std::unique_ptr< ShellingOrderModule > m_compOrder
The shelling order module.
Declaration of interface for grid layout algorithms.
std::unique_ptr< EmbedderModule > m_embedder
The planar embedder module.
std::unique_ptr< MixedModelCrossingsBeautifierModule > m_crossingsBeautifier
The crossings beautifier module.
void setCrossingsBeautifier(MixedModelCrossingsBeautifierModule *pBeautifier)
Sets the crossings beautifier module.
Declares the base class ShellingOrderModule for modules that compute a shelling order of a graph...
std::unique_ptr< AugmentationModule > m_augmenter
The augmentation module.
Declaration of interface for graph augmentation algorithms.
Declaration of interface for mixed-model crossings beautifier algorithms.
Implementation of the Mixed-Model layout algorithm.
The base class for graph augmentation algorithms.
The namespace for all OGDF objects.
Base class for embedder algorithms.
Class for adjacency list elements.
Definition: Graph_d.h:79
void setShellingOrder(ShellingOrderModule *pOrder)
Sets the shelling order module.
Planarized representations (of a connected component) of a graph.
Definition: PlanRep.h:59