#include <ClusterPlanarizationLayout.h>
Public Member Functions | |
| ClusterPlanarizationLayout () | |
| Creates an instance of cluster planarization layout. | |
| virtual | ~ClusterPlanarizationLayout () |
| virtual void | call (Graph &G, ClusterGraphAttributes &acGraph, ClusterGraph &cGraph, bool simpleCConnect=true) |
| Calls cluster planarization layout with cluster-graph attributes acGraph. | |
| double | pageRatio () const |
| Returns the current page ratio (= desired width / height of layout). | |
| void | pageRatio (double ratio) |
| Sets the page ratio to ratio. | |
| void | setPlanarLayouter (LayoutClusterPlanRepModule *pPlanarLayouter) |
| Sets the module option for the planar layout algorithm to pPlanarLayouter. | |
| void | setPacker (CCLayoutPackModule *pPacker) |
| Sets the module option for the arrangement of connected components to pPacker. | |
Protected Member Functions | |
| void | computeClusterPositions (ClusterPlanRep &CP, Layout drawing, HashArray< int, ClusterPosition > &CA) |
Private Attributes | |
| ModuleOption < LayoutClusterPlanRepModule > | m_planarLayouter |
| The planar layouter. | |
| ModuleOption< CCLayoutPackModule > | m_packer |
| The packing algorithm. | |
| double | m_pageRatio |
| The page ratio. | |
| int | m_nCrossings |
| The number of crossings (not yet used!). | |
Classes | |
| struct | ClusterPosition |
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 105 of file ClusterPlanarizationLayout.h.
| ogdf::ClusterPlanarizationLayout::ClusterPlanarizationLayout | ( | ) |
Creates an instance of cluster planarization layout.
| virtual ogdf::ClusterPlanarizationLayout::~ClusterPlanarizationLayout | ( | ) | [inline, virtual] |
Definition at line 112 of file ClusterPlanarizationLayout.h.
| virtual void ogdf::ClusterPlanarizationLayout::call | ( | Graph & | G, | |
| ClusterGraphAttributes & | acGraph, | |||
| ClusterGraph & | cGraph, | |||
| bool | simpleCConnect = true | |||
| ) | [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 |
| double ogdf::ClusterPlanarizationLayout::pageRatio | ( | ) | const [inline] |
Returns the current page ratio (= desired width / height of layout).
Definition at line 130 of file ClusterPlanarizationLayout.h.
| void ogdf::ClusterPlanarizationLayout::pageRatio | ( | double | ratio | ) | [inline] |
| void ogdf::ClusterPlanarizationLayout::setPlanarLayouter | ( | LayoutClusterPlanRepModule * | pPlanarLayouter | ) | [inline] |
Sets the module option for the planar layout algorithm to pPlanarLayouter.
Definition at line 140 of file ClusterPlanarizationLayout.h.
| void ogdf::ClusterPlanarizationLayout::setPacker | ( | CCLayoutPackModule * | pPacker | ) | [inline] |
Sets the module option for the arrangement of connected components to pPacker.
Definition at line 145 of file ClusterPlanarizationLayout.h.
| void ogdf::ClusterPlanarizationLayout::computeClusterPositions | ( | ClusterPlanRep & | CP, | |
| Layout | drawing, | |||
| HashArray< int, ClusterPosition > & | CA | |||
| ) | [protected] |
double ogdf::ClusterPlanarizationLayout::m_pageRatio [private] |
int ogdf::ClusterPlanarizationLayout::m_nCrossings [private] |
The number of crossings (not yet used!).
Definition at line 173 of file ClusterPlanarizationLayout.h.