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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user