SILICON
Loading...
Searching...
No Matches
GraphLayoutOptions Struct Reference

Configuration for OGDF-based component placement. More...

#include <ogdfCircuit.hpp>

Public Attributes

GraphLayoutAlgorithm algorithm = GraphLayoutAlgorithm::Layered
 Placement family used to generate the candidate.
GraphLayoutDirection direction = GraphLayoutDirection::TopToBottom
 Scene direction assigned to source-to-target ranks.
int randomSeed = 0
 Deterministic seed used by force-directed candidates.
int nodeDistance = 6 * DiagramScene::GRID_SIZE
 Minimum horizontal scene distance between nodes on the same OGDF layer.
int layerDistance = 10 * DiagramScene::GRID_SIZE
 Minimum vertical scene distance between neighboring OGDF layers.
int connectedComponentDistance = 12 * DiagramScene::GRID_SIZE
 Minimum distance between disconnected graph components.
int fallbackNodeWidth = 8 * DiagramScene::GRID_SIZE
 Width used when a graphical item has no valid scene bounds.
int fallbackNodeHeight = 5 * DiagramScene::GRID_SIZE
 Height used when a graphical item has no valid scene bounds.
QPointF origin = QPointF(0.0, 0.0)
 Top-left scene position of the normalized arranged layout.
bool deterministic = true
 True to use a single deterministic Sugiyama crossing-minimization run.

Detailed Description

Configuration for OGDF-based component placement.

The layout adapter uses these values while converting the logical circuit graph into an OGDF graph and while mapping OGDF center coordinates back into Qt scene positions.

Definition at line 51 of file ogdfCircuit.hpp.

Member Data Documentation

◆ algorithm

Placement family used to generate the candidate.

Definition at line 53 of file ogdfCircuit.hpp.

◆ connectedComponentDistance

int connectedComponentDistance = 12 * DiagramScene::GRID_SIZE

Minimum distance between disconnected graph components.

Definition at line 63 of file ogdfCircuit.hpp.

◆ deterministic

bool deterministic = true

True to use a single deterministic Sugiyama crossing-minimization run.

Definition at line 71 of file ogdfCircuit.hpp.

◆ direction

Scene direction assigned to source-to-target ranks.

Definition at line 55 of file ogdfCircuit.hpp.

◆ fallbackNodeHeight

int fallbackNodeHeight = 5 * DiagramScene::GRID_SIZE

Height used when a graphical item has no valid scene bounds.

Definition at line 67 of file ogdfCircuit.hpp.

◆ fallbackNodeWidth

int fallbackNodeWidth = 8 * DiagramScene::GRID_SIZE

Width used when a graphical item has no valid scene bounds.

Definition at line 65 of file ogdfCircuit.hpp.

◆ layerDistance

int layerDistance = 10 * DiagramScene::GRID_SIZE

Minimum vertical scene distance between neighboring OGDF layers.

Definition at line 61 of file ogdfCircuit.hpp.

◆ nodeDistance

int nodeDistance = 6 * DiagramScene::GRID_SIZE

Minimum horizontal scene distance between nodes on the same OGDF layer.

Definition at line 59 of file ogdfCircuit.hpp.

◆ origin

QPointF origin = QPointF(0.0, 0.0)

Top-left scene position of the normalized arranged layout.

Definition at line 69 of file ogdfCircuit.hpp.

◆ randomSeed

int randomSeed = 0

Deterministic seed used by force-directed candidates.

Definition at line 57 of file ogdfCircuit.hpp.


The documentation for this struct was generated from the following file: