Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

MixedModelLayout.h
Go to the documentation of this file.
1 
32 #pragma once
33 
35 #include <memory>
40 
41 
42 namespace ogdf {
43 
44 
115 {
116 public:
119 
120  virtual ~MixedModelLayout() { }
121 
133  void setAugmenter(AugmentationModule *pAugmenter) {
134  m_augmenter.reset(pAugmenter);
135  }
136 
139  m_compOrder.reset(pOrder);
140  }
141 
144  m_crossingsBeautifier.reset(pBeautifier);
145  }
146 
148  void setEmbedder(EmbedderModule *pEmbedder) {
149  m_embedder.reset(pEmbedder);
150  }
151 
153 
154 protected:
156  virtual void doCall(
157  PlanRep &PG,
158  adjEntry adjExternal,
159  GridLayout &gridLayout,
160  IPoint &boundingBox,
161  bool fixEmbedding) override;
162 
163 private:
164  std::unique_ptr<EmbedderModule> m_embedder;
165  std::unique_ptr<AugmentationModule> m_augmenter;
166  std::unique_ptr<ShellingOrderModule> m_compOrder;
167  std::unique_ptr<MixedModelCrossingsBeautifierModule> m_crossingsBeautifier;
168 };
169 
170 
171 } // end namespace ogdf
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.
Declaration of interface for embedder for graphs.
Integer points.
Definition: geometry.h:156
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:78
void setShellingOrder(ShellingOrderModule *pOrder)
Sets the shelling order module.
Planarized representations (of a connected component) of a graph.
Definition: PlanRep.h:60