Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

CircularLayout.h
Go to the documentation of this file.
1 
32 #pragma once
33 
36 
37 namespace ogdf {
38 
39 struct ClusterStructure;
40 
42 
74 {
75 public:
78 
79  // destructor
81 
82 
88  virtual void call(GraphAttributes &GA) override;
90 
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(
143  ClusterStructure &C,
144  const Array<double> &outerRadius,
145  Array<double> &preferedAngle);
146 
147  void assignPrefAngle(ClusterStructure &C,
148  const Array<double> &outerRadius,
149  Array<double> &preferedAngle,
150  int c,
151  double r1);
152 };
153 
154 }
double minDistCC() const
Returns the option minDistCC.
Declaration of class GraphAttributes which extends a Graph by additional attributes.
void minDistSibling(double x)
Sets the option minDistSibling to x.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
double minDistSibling() const
Returns the option minDistSibling.
void minDistCircle(double x)
Sets the option minDistCircle to x.
double m_minDistCircle
The minimal distance between nodes on a circle.
double m_minDistCC
The minimal distance between connected components.
double pageRatio() const
Returns the option pageRatio.
void pageRatio(double x)
Sets the option pageRatio to x.
double m_minDistLevel
The minimal distance between father and child circle.
void minDistCC(double x)
Sets the option minDistCC to x.
Stores additional attributes of a graph (like layout information).
void minDistLevel(double x)
Sets the option minDistLevel to x.
double m_pageRatio
The page ratio used for packing connected components.
Declaration of interface for layout algorithms (class LayoutModule)
Class for the representation of nodes.
Definition: Graph_d.h:169
Interface of general layout algorithms.
Definition: LayoutModule.h:44
The namespace for all OGDF objects.
The circular layout algorithm.
double m_minDistSibling
The minimal distance between circles on same level.
double minDistLevel() const
Returns the option minDistLevel.