ui: Improved horizontal graph layout

* extend horizontal edges to origin column width
* leave horizontal gap in the middle of the left and right buckets for routing edges
* move left and right buckets vertically so that edges enter and leave horizontally
* removed third pivoting for graph edges, all edges enter and leave relative to the node center now
This commit is contained in:
Eberhard Graether
2018-04-10 01:45:56 +02:00
parent 535f7c1a9c
commit 20f87b084f
10 changed files with 194 additions and 68 deletions
@@ -23,7 +23,7 @@ public:
void addNode(std::shared_ptr<DummyNode> node);
const DummyNode::BundledNodesSet& getNodes() const;
void preLayout(Vec2i viewSize);
void preLayout(Vec2i viewSize, bool addVerticalOffset);
void layout(int x, int y, int width, int height);
int i;
@@ -65,6 +65,8 @@ private:
int m_j1;
int m_i2;
int m_j2;
DummyNode* m_activeParentNode = nullptr;
};
#endif // BUCKET_LAYOUTER_H