Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

PlanarStraightLayout.h
Go to the documentation of this file.
1 
33 #pragma once
34 
40 
41 #include <memory>
42 
43 namespace ogdf {
44 
114 public:
117 
119 
131  bool sizeOptimization() const { return m_sizeOptimization; }
132 
134  void sizeOptimization(bool opt) { m_sizeOptimization = opt; }
135 
143  double baseRatio() const { return m_baseRatio; }
144 
146  void baseRatio(double ratio) { m_baseRatio = ratio; }
147 
159  void setAugmenter(AugmentationModule* pAugmenter) { m_augmenter.reset(pAugmenter); }
160 
162  void setShellingOrder(ShellingOrderModule* pOrder) { m_computeOrder.reset(pOrder); }
163 
165  void setEmbedder(EmbedderModule* pEmbedder) { m_embedder.reset(pEmbedder); }
166 
168 
169 private:
171  double m_baseRatio;
172 
173  std::unique_ptr<EmbedderModule> m_embedder;
174  std::unique_ptr<AugmentationModule> m_augmenter;
175  std::unique_ptr<ShellingOrderModule> m_computeOrder;
176 
177  virtual void doCall(const Graph& G, adjEntry adjExternal, GridLayout& gridLayout,
178  IPoint& boundingBox, bool fixEmbedding) override;
179 
180  void computeCoordinates(const Graph& G, ShellingOrder& lmc, NodeArray<int>& x, NodeArray<int>& y);
181 };
182 
183 }
ogdf::PlanarStraightLayout::m_baseRatio
double m_baseRatio
The option for specifying the base ratio.
Definition: PlanarStraightLayout.h:171
ogdf
The namespace for all OGDF objects.
Definition: AugmentationModule.h:36
ogdf::PlanarStraightLayout::m_augmenter
std::unique_ptr< AugmentationModule > m_augmenter
The augmentation module.
Definition: PlanarStraightLayout.h:174
ShellingOrderModule.h
Declares the base class ShellingOrderModule for modules that compute a shelling order of a graph.
ogdf::GenericPoint< int >
ogdf::PlanarStraightLayout::~PlanarStraightLayout
~PlanarStraightLayout()
Definition: PlanarStraightLayout.h:118
ogdf::ShellingOrderModule
Base class for modules that compute a shelling order of a graph.
Definition: ShellingOrderModule.h:44
ogdf::PlanarStraightLayout::baseRatio
double baseRatio() const
Returns the current setting of option baseRatio.
Definition: PlanarStraightLayout.h:143
ogdf::PlanarStraightLayout::setEmbedder
void setEmbedder(EmbedderModule *pEmbedder)
Sets the module option for the graph embedding algorithm.
Definition: PlanarStraightLayout.h:165
ogdf::AdjElement
Class for adjacency list elements.
Definition: Graph_d.h:135
ogdf::PlanarStraightLayout::m_embedder
std::unique_ptr< EmbedderModule > m_embedder
The planar embedder module.
Definition: PlanarStraightLayout.h:173
AugmentationModule.h
Declaration of interface for graph augmentation algorithms.
ogdf::PlanarStraightLayout::setAugmenter
void setAugmenter(AugmentationModule *pAugmenter)
Sets the augmentation module.
Definition: PlanarStraightLayout.h:159
ogdf::PlanarGridLayoutModule
Base class for planar grid layout algorithms.
Definition: GridLayoutModule.h:133
ogdf::internal::GraphRegisteredArray
RegisteredArray for nodes, edges and adjEntries of a graph.
Definition: Graph_d.h:651
ogdf::Graph
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:862
ogdf::AugmentationModule
The base class for graph augmentation algorithms.
Definition: AugmentationModule.h:53
ogdf::PlanarStraightLayout::sizeOptimization
void sizeOptimization(bool opt)
Sets the option sizeOptimization to opt.
Definition: PlanarStraightLayout.h:134
ogdf::PlanarStraightLayout::m_sizeOptimization
bool m_sizeOptimization
The option for size optimization.
Definition: PlanarStraightLayout.h:170
ogdf::PlanarStraightLayout::m_computeOrder
std::unique_ptr< ShellingOrderModule > m_computeOrder
The shelling order module.
Definition: PlanarStraightLayout.h:175
ogdf::EmbedderModule
Base class for embedder algorithms.
Definition: EmbedderModule.h:49
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:101
EmbedderModule.h
Defines ogdf::EmbedderModule.
ogdf::PlanarStraightLayout::sizeOptimization
bool sizeOptimization() const
Returns the current setting of option sizeOptimization.
Definition: PlanarStraightLayout.h:131
ShellingOrder.h
Declares classes ShellingOrderSet and ShellingOrder.
ogdf::GridLayout
Representation of a graph's grid layout.
Definition: GridLayout.h:46
ogdf::PlanarStraightLayout
Implementation of the Planar-Straight layout algorithm.
Definition: PlanarStraightLayout.h:113
ogdf::PlanarStraightLayout::setShellingOrder
void setShellingOrder(ShellingOrderModule *pOrder)
Sets the shelling order module.
Definition: PlanarStraightLayout.h:162
ogdf::ShellingOrder
The shelling order of a graph.
Definition: ShellingOrder.h:113
ogdf::PlanarStraightLayout::baseRatio
void baseRatio(double ratio)
Sets the option baseRatio to ratio.
Definition: PlanarStraightLayout.h:146
GridLayoutModule.h
Declaration of interface for grid layout algorithms.