Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

CircularLayout.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/Array.h>
35 #include <ogdf/basic/Graph.h>
37 #include <ogdf/basic/basic.h>
38 
39 namespace ogdf {
40 
41 class GraphAttributes;
42 struct ClusterStructure;
43 
45 
77 public:
80 
81  // destructor
83 
89  virtual void call(GraphAttributes& GA) override;
91 
97  double minDistCircle() const { return m_minDistCircle; }
99 
101  void minDistCircle(double x) { m_minDistCircle = x; }
102 
104  double minDistLevel() const { return m_minDistLevel; }
105 
107  void minDistLevel(double x) { m_minDistLevel = x; }
108 
110  double minDistSibling() const { return m_minDistSibling; }
111 
113  void minDistSibling(double x) { m_minDistSibling = x; }
114 
116  double minDistCC() const { return m_minDistCC; }
117 
119  void minDistCC(double x) { m_minDistCC = x; }
120 
122  double pageRatio() const { return m_pageRatio; }
123 
125  void pageRatio(double x) { m_pageRatio = x; }
126 
128 
129 private:
131  double m_minDistLevel;
133  double m_minDistCC;
134  double m_pageRatio;
135 
136  void doCall(GraphAttributes& AG, ClusterStructure& C);
137 
138  void assignClustersByBiconnectedComponents(ClusterStructure& C);
139 
140  int sizeBC(node vB);
141 
142  void computePreferedAngles(ClusterStructure& C, const Array<double>& outerRadius,
143  Array<double>& preferedAngle);
144 
145  void assignPrefAngle(ClusterStructure& C, const Array<double>& outerRadius,
146  Array<double>& preferedAngle, int c, double r1);
147 };
148 
149 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
ogdf::GraphAttributes
Stores additional attributes of a graph (like layout information).
Definition: GraphAttributes.h:72
Graph.h
Includes declaration of graph class.
ogdf::CircularLayout::minDistCC
void minDistCC(double x)
Sets the option minDistCC to x.
Definition: CircularLayout.h:119
ogdf::CircularLayout::pageRatio
void pageRatio(double x)
Sets the option pageRatio to x.
Definition: CircularLayout.h:125
ogdf::CircularLayout::minDistSibling
void minDistSibling(double x)
Sets the option minDistSibling to x.
Definition: CircularLayout.h:113
LayoutModule.h
Declaration of interface for layout algorithms (class LayoutModule)
ogdf::CircularLayout::m_minDistCC
double m_minDistCC
The minimal distance between connected components.
Definition: CircularLayout.h:133
ogdf::CircularLayout::minDistLevel
double minDistLevel() const
Returns the option minDistLevel.
Definition: CircularLayout.h:104
ogdf::CircularLayout::pageRatio
double pageRatio() const
Returns the option pageRatio.
Definition: CircularLayout.h:122
ogdf::CircularLayout::m_minDistLevel
double m_minDistLevel
The minimal distance between father and child circle.
Definition: CircularLayout.h:131
ogdf::CircularLayout::minDistCC
double minDistCC() const
Returns the option minDistCC.
Definition: CircularLayout.h:116
ogdf::Array< double >
ogdf::CircularLayout::m_minDistCircle
double m_minDistCircle
The minimal distance between nodes on a circle.
Definition: CircularLayout.h:130
ogdf::CircularLayout::m_pageRatio
double m_pageRatio
The page ratio used for packing connected components.
Definition: CircularLayout.h:134
ogdf::CircularLayout::m_minDistSibling
double m_minDistSibling
The minimal distance between circles on same level.
Definition: CircularLayout.h:132
ogdf::CircularLayout::minDistLevel
void minDistLevel(double x)
Sets the option minDistLevel to x.
Definition: CircularLayout.h:107
ogdf::CircularLayout::minDistCircle
void minDistCircle(double x)
Sets the option minDistCircle to x.
Definition: CircularLayout.h:101
ogdf::CircularLayout::~CircularLayout
~CircularLayout()
Definition: CircularLayout.h:82
basic.h
Basic declarations, included by all source files.
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:101
ogdf::CircularLayout
The circular layout algorithm.
Definition: CircularLayout.h:76
Array.h
Declaration and implementation of Array class and Array algorithms.
ogdf::CircularLayout::minDistSibling
double minDistSibling() const
Returns the option minDistSibling.
Definition: CircularLayout.h:110
ogdf::NodeElement
Class for the representation of nodes.
Definition: Graph_d.h:240
ogdf::LayoutModule
Interface of general layout algorithms.
Definition: LayoutModule.h:45