Adaptagrams
Public Member Functions | List of all members
dialect::OrthoHubLayout Class Reference

A layout object that tries to orthogonalise hubs. This means it visits nodes of degrees 3 or higher, and tries to set their neighbours in cardinal compass directions from it. More...

#include <nodeconfig.h>

Collaboration diagram for dialect::OrthoHubLayout:
Collaboration graph

Public Member Functions

 OrthoHubLayout (Graph_SP G, OrthoHubLayoutOptions opts)
 Standard constructor. More...
 
void layout (Logger *logger=nullptr)
 Try to orthogonalise hubs. More...
 

Detailed Description

A layout object that tries to orthogonalise hubs. This means it visits nodes of degrees 3 or higher, and tries to set their neighbours in cardinal compass directions from it.

Constructor & Destructor Documentation

◆ OrthoHubLayout()

OrthoHubLayout::OrthoHubLayout ( Graph_SP  G,
OrthoHubLayoutOptions  opts 
)

Standard constructor.

Parameters
[in,out]Gthe underlying Graph
[in]optsoptions to control the layout

References dialect::OrthoHubLayoutOptions::avoidFlatTriangles, dialect::OrthoHubLayoutOptions::includeLinks, and dialect::ColaOptions::preventOverlaps.

Member Function Documentation

◆ layout()

void OrthoHubLayout::layout ( Logger *  logger = nullptr)

Try to orthogonalise hubs.

Parameters
[in]loggerOptional logger to record the individual layout steps.

References dialect::ACALayout::applyOAsAllOrNothing(), dialect::OrthoHubLayoutOptions::avoidFlatTriangles, dialect::ColaGraphRep::id2ix, dialect::string_format(), and dialect::ACALayout::updateSepMatrix().

Referenced by dialect::doHOLA().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: