Adaptagrams
|
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>
Public Member Functions | |
OrthoHubLayout (Graph_SP G, OrthoHubLayoutOptions opts) | |
Standard constructor. More... | |
void | layout (Logger *logger=nullptr) |
Try to orthogonalise hubs. More... | |
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.
OrthoHubLayout::OrthoHubLayout | ( | Graph_SP | G, |
OrthoHubLayoutOptions | opts | ||
) |
Standard constructor.
[in,out] | G | the underlying Graph |
[in] | opts | options to control the layout |
References dialect::OrthoHubLayoutOptions::avoidFlatTriangles, dialect::OrthoHubLayoutOptions::includeLinks, and dialect::ColaOptions::preventOverlaps.
void OrthoHubLayout::layout | ( | Logger * | logger = nullptr | ) |
Try to orthogonalise hubs.
[in] | logger | Optional 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().