Represents a planar orthogonal drawing algorithm for c-planar, c-connected clustered graphs. More...
#include <ogdf/cluster/ClusterOrthoLayout.h>
Public Member Functions | |
ClusterOrthoLayout () | |
Initializes an instance of class ClusterOrthoLayout. More... | |
void | align (bool b) |
Sets alignment option. More... | |
void | call (ClusterPlanRep &PG, adjEntry adjExternal, Layout &drawing) |
Calls planar UML layout algorithm. More... | |
virtual void | call (ClusterPlanRep &PG, adjEntry adjExternal, Layout &drawing, List< edge > &origEdges, Graph &originalGraph) override |
Call method for non c-planar graphs. More... | |
int | costAssoc () const |
Returns cost of associations which is used in the compactions step. More... | |
void | costAssoc (int c) |
Sets cost of associations which is used in the compactions step. More... | |
int | costGen () const |
Returns cost of generalizations. More... | |
void | costGen (int c) |
Sets cost of generalizations. More... | |
double | cOverhang () const |
Returns cOverhang, where cOverhang * separation defines the minimum. More... | |
void | cOverhang (double c) |
Sets cOverhang value. More... | |
double | margin () const |
Returns the distance from the tight bounding box to the boundary of the drawing. More... | |
void | margin (double m) |
Sets the distance from the tight bounding box to the boundary of the drawing. More... | |
void | optionProfile (int i) |
Sets the option profile, thereby fixing a set of drawing options. More... | |
OrthoDir | preferedDir () const |
Returns the preferred direction of generalizations. More... | |
void | preferedDir (OrthoDir dir) |
Sets the preferred direction of generalizations. More... | |
void | scaling (bool b) |
Sets scaling option for compaction step. More... | |
virtual double | separation () const override |
Returns the minimum distance between edges and vertices. More... | |
virtual void | separation (double sep) override |
Sets the minimum distance between edges and vertices. More... | |
virtual void | setOptions (int optionField) override |
Sets generic options by setting field bits. More... | |
Public Member Functions inherited from ogdf::LayoutClusterPlanRepModule | |
LayoutClusterPlanRepModule () | |
Initializes a cluster planar layout module. More... | |
virtual | ~LayoutClusterPlanRepModule () |
const DPoint & | getBoundingBox () const |
Returns the bounding box of the computed layout. More... | |
virtual int | getOptions () |
Returns the (generic) options. More... | |
Private Member Functions | |
void | computeBoundingBox (const ClusterPlanRep &PG, Layout &drawing) |
Private Attributes | |
bool | m_align |
Horizontal alignment option. More... | |
int | m_costAssoc |
Compaction cost of association type edges. More... | |
int | m_costGen |
Compaction cost of generalizations type edges. More... | |
double | m_cOverhang |
Factor for minimum distance between vertex corner an adjacent edges. More... | |
double | m_margin |
Distance between bounding box and drawing boundary. More... | |
int | m_optionProfile |
int | m_orthoStyle |
Type of style (traditional/progressive) used for shape step. More... | |
OrthoDir | m_preferedDir |
Preferred direction of generalizations (obsolete). More... | |
int | m_scalingSteps |
Number of scaling steps during compaction. More... | |
double | m_separation |
Minimum distance between edges and vertices. More... | |
bool | m_useScalingCompaction |
Switches scaling improvement during compaction. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ogdf::LayoutClusterPlanRepModule | |
DPoint | m_boundingBox |
Stores the bounding box of the computed layout. More... | |
Represents a planar orthogonal drawing algorithm for c-planar, c-connected clustered graphs.
Definition at line 50 of file ClusterOrthoLayout.h.
ogdf::ClusterOrthoLayout::ClusterOrthoLayout | ( | ) |
Initializes an instance of class ClusterOrthoLayout.
|
inline |
Sets alignment option.
Definition at line 112 of file ClusterOrthoLayout.h.
void ogdf::ClusterOrthoLayout::call | ( | ClusterPlanRep & | PG, |
adjEntry | adjExternal, | ||
Layout & | drawing | ||
) |
Calls planar UML layout algorithm.
Input is a planarized representation PG
of a connected component of the graph, output is a layout of the (modified) planarized representation in drawing
.
|
overridevirtual |
Call method for non c-planar graphs.
Implements ogdf::LayoutClusterPlanRepModule.
|
private |
|
inline |
Returns cost of associations which is used in the compactions step.
Definition at line 97 of file ClusterOrthoLayout.h.
|
inline |
Sets cost of associations which is used in the compactions step.
Definition at line 100 of file ClusterOrthoLayout.h.
|
inline |
Returns cost of generalizations.
Definition at line 103 of file ClusterOrthoLayout.h.
|
inline |
Sets cost of generalizations.
Definition at line 106 of file ClusterOrthoLayout.h.
|
inline |
Returns cOverhang, where cOverhang * separation defines the minimum.
Definition at line 79 of file ClusterOrthoLayout.h.
|
inline |
Sets cOverhang value.
Definition at line 82 of file ClusterOrthoLayout.h.
|
inline |
Returns the distance from the tight bounding box to the boundary of the drawing.
Definition at line 85 of file ClusterOrthoLayout.h.
|
inline |
Sets the distance from the tight bounding box to the boundary of the drawing.
Definition at line 88 of file ClusterOrthoLayout.h.
|
inline |
Sets the option profile, thereby fixing a set of drawing options.
Definition at line 109 of file ClusterOrthoLayout.h.
|
inline |
Returns the preferred direction of generalizations.
Definition at line 91 of file ClusterOrthoLayout.h.
|
inline |
Sets the preferred direction of generalizations.
Definition at line 94 of file ClusterOrthoLayout.h.
|
inline |
Sets scaling option for compaction step.
Definition at line 115 of file ClusterOrthoLayout.h.
|
inlineoverridevirtual |
Returns the minimum distance between edges and vertices.
Implements ogdf::LayoutClusterPlanRepModule.
Definition at line 72 of file ClusterOrthoLayout.h.
|
inlineoverridevirtual |
Sets the minimum distance between edges and vertices.
Implements ogdf::LayoutClusterPlanRepModule.
Definition at line 75 of file ClusterOrthoLayout.h.
|
inlineoverridevirtual |
Sets generic options by setting field bits.
Reimplemented from ogdf::LayoutClusterPlanRepModule.
Definition at line 123 of file ClusterOrthoLayout.h.
|
private |
Horizontal alignment option.
Definition at line 146 of file ClusterOrthoLayout.h.
|
private |
Compaction cost of association type edges.
Definition at line 143 of file ClusterOrthoLayout.h.
|
private |
Compaction cost of generalizations type edges.
Definition at line 144 of file ClusterOrthoLayout.h.
|
private |
Factor for minimum distance between vertex corner an adjacent edges.
Definition at line 139 of file ClusterOrthoLayout.h.
|
private |
Distance between bounding box and drawing boundary.
Definition at line 140 of file ClusterOrthoLayout.h.
|
private |
Definition at line 142 of file ClusterOrthoLayout.h.
|
private |
Type of style (traditional/progressive) used for shape step.
Definition at line 150 of file ClusterOrthoLayout.h.
|
private |
Preferred direction of generalizations (obsolete).
Definition at line 141 of file ClusterOrthoLayout.h.
|
private |
Number of scaling steps during compaction.
Definition at line 149 of file ClusterOrthoLayout.h.
|
private |
Minimum distance between edges and vertices.
Definition at line 138 of file ClusterOrthoLayout.h.
|
private |
Switches scaling improvement during compaction.
Definition at line 148 of file ClusterOrthoLayout.h.