Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
CircularLayout.h
Go to the documentation of this file.
1
32#pragma once
33
36
37namespace ogdf {
38
39struct ClusterStructure;
40
42
74public:
77
78 // destructor
80
87 virtual void call(GraphAttributes& GA) override;
88
95 double minDistCircle() const { return m_minDistCircle; }
96
98 void minDistCircle(double x) { m_minDistCircle = x; }
99
101 double minDistLevel() const { return m_minDistLevel; }
102
104 void minDistLevel(double x) { m_minDistLevel = x; }
105
107 double minDistSibling() const { return m_minDistSibling; }
108
110 void minDistSibling(double x) { m_minDistSibling = x; }
111
113 double minDistCC() const { return m_minDistCC; }
114
116 void minDistCC(double x) { m_minDistCC = x; }
117
119 double pageRatio() const { return m_pageRatio; }
120
122 void pageRatio(double x) { m_pageRatio = x; }
123
125
126private:
130 double m_minDistCC;
131 double m_pageRatio;
132
134
136
138
141
143 Array<double>& preferedAngle, int c, double r1);
144};
145
146}
Declaration of class GraphAttributes which extends a Graph by additional attributes.
Declaration of interface for layout algorithms (class LayoutModule)
The parameterized class Array implements dynamic arrays of type E.
Definition Array.h:214
The circular layout algorithm.
double minDistSibling() const
Returns the option minDistSibling.
void doCall(GraphAttributes &AG, ClusterStructure &C)
CircularLayout()
Creates an instance of circular layout.
void minDistCC(double x)
Sets the option minDistCC to x.
void assignPrefAngle(ClusterStructure &C, const Array< double > &outerRadius, Array< double > &preferedAngle, int c, double r1)
double minDistCircle() const
Returns the option minDistCircle.
double m_minDistLevel
The minimal distance between father and child circle.
void pageRatio(double x)
Sets the option pageRatio to x.
double m_minDistCircle
The minimal distance between nodes on a circle.
void computePreferedAngles(ClusterStructure &C, const Array< double > &outerRadius, Array< double > &preferedAngle)
virtual void call(GraphAttributes &GA) override
Computes a circular layout for graph attributes GA.
void minDistCircle(double x)
Sets the option minDistCircle to x.
double m_minDistSibling
The minimal distance between circles on same level.
void minDistSibling(double x)
Sets the option minDistSibling to x.
void assignClustersByBiconnectedComponents(ClusterStructure &C)
double minDistLevel() const
Returns the option minDistLevel.
double pageRatio() const
Returns the option pageRatio.
double m_pageRatio
The page ratio used for packing connected components.
double m_minDistCC
The minimal distance between connected components.
double minDistCC() const
Returns the option minDistCC.
int sizeBC(node vB)
void minDistLevel(double x)
Sets the option minDistLevel to x.
Stores additional attributes of a graph (like layout information).
Interface of general layout algorithms.
Class for the representation of nodes.
Definition Graph_d.h:177
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition config.h:101
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.