The cluster planarization layout algorithm. More...
#include <ogdf/cluster/ClusterPlanarizationLayout.h>
Classes | |
struct | ClusterPosition |
Public Member Functions | |
ClusterPlanarizationLayout () | |
Creates an instance of cluster planarization layout. More... | |
virtual | ~ClusterPlanarizationLayout () |
Destruction. More... | |
virtual void | call (Graph &G, ClusterGraphAttributes &acGraph, ClusterGraph &cGraph, bool simpleCConnect=true) |
Calls cluster planarization layout with cluster-graph attributes acGraph . More... | |
virtual void | call (Graph &G, ClusterGraphAttributes &acGraph, ClusterGraph &cGraph, EdgeArray< double > &edgeWeight, bool simpleCConnect=true) |
Calls cluster planarization layout with cluster-graph attributes acGraph . More... | |
double | pageRatio () const |
Returns the current page ratio (= desired width / height of layout). More... | |
void | pageRatio (double ratio) |
Sets the page ratio to ratio . More... | |
void | setPacker (CCLayoutPackModule *pPacker) |
Sets the module option for the arrangement of connected components to pPacker . More... | |
void | setPlanarLayouter (LayoutClusterPlanRepModule *pPlanarLayouter) |
Sets the module option for the planar layout algorithm to pPlanarLayouter . More... | |
Protected Member Functions | |
void | computeClusterPositions (ClusterPlanRep &CP, Layout drawing, HashArray< int, ClusterPosition > &CA) |
Private Attributes | |
int | m_nCrossings |
The number of crossings (not yet used!). More... | |
std::unique_ptr< CCLayoutPackModule > | m_packer |
The packing algorithm. More... | |
double | m_pageRatio |
The page ratio. More... | |
std::unique_ptr< LayoutClusterPlanRepModule > | m_planarLayouter |
The planar layouter. More... | |
The cluster planarization layout algorithm.
The class ClusterPlanarizationLayout implements the planarization approach for drawing clustered graphs. Its implementation is based on the following publication:
Giuseppe Di Battista, Walter Didimo, A. Marcandalli: Planarization of Clustered Graphs. LNCS 2265 (Proc. Graph Drawing 2001), pp. 60-74.
Option | Type | Default | Description |
---|---|---|---|
pageRatio | double | 1.0 | Specifies the desired ration of width / height of the computed layout. It is currently only used when packing connected components. |
The algorithm provides the following module options:
Option | Type | Default | Description |
---|---|---|---|
planarLayouter | LayoutClusterPlanRepModule | ClusterOrthoLayout | The c-planar layout algorithm used to compute a c-planar layout of the c-planarized representation resulting from the crossing minimization step. |
packer | CCLayoutPackModule | TileToRowsCCPacker | The packer module used for arranging connected components. |
Definition at line 88 of file ClusterPlanarizationLayout.h.
ogdf::ClusterPlanarizationLayout::ClusterPlanarizationLayout | ( | ) |
Creates an instance of cluster planarization layout.
|
inlinevirtual |
Destruction.
Definition at line 94 of file ClusterPlanarizationLayout.h.
|
virtual |
Calls cluster planarization layout with cluster-graph attributes acGraph
.
G | is the input graph. |
acGraph | is assigned the computed layout. |
cGraph | is the input cluster graph. |
simpleCConnect | If set to true, c-connectivity is achieved by adding arbitrary edges (fast). |
|
virtual |
Calls cluster planarization layout with cluster-graph attributes acGraph
.
G | is the input graph. |
acGraph | is assigned the computed layout. |
cGraph | is the input cluster graph. |
edgeWeight | allows to prefer lightweight edges for planar subgraph computation. |
simpleCConnect | If set to true, c-connectivity is achieved by adding arbitrary edges (fast). |
|
protected |
|
inline |
Returns the current page ratio (= desired width / height of layout).
Definition at line 117 of file ClusterPlanarizationLayout.h.
|
inline |
Sets the page ratio to ratio
.
Definition at line 120 of file ClusterPlanarizationLayout.h.
|
inline |
Sets the module option for the arrangement of connected components to pPacker
.
Definition at line 128 of file ClusterPlanarizationLayout.h.
|
inline |
Sets the module option for the planar layout algorithm to pPlanarLayouter
.
Definition at line 123 of file ClusterPlanarizationLayout.h.
|
private |
The number of crossings (not yet used!).
Definition at line 153 of file ClusterPlanarizationLayout.h.
|
private |
The packing algorithm.
Definition at line 149 of file ClusterPlanarizationLayout.h.
|
private |
The page ratio.
Definition at line 151 of file ClusterPlanarizationLayout.h.
|
private |
The planar layouter.
Definition at line 148 of file ClusterPlanarizationLayout.h.