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
-8
View File
@@ -18,12 +18,6 @@ public:
ROUTE_VERTICAL
};
enum Pivot
{
PIVOT_THIRD,
PIVOT_MIDDLE
};
QtLineItemBase(QGraphicsItem* parent);
virtual ~QtLineItemBase();
@@ -34,7 +28,6 @@ public:
size_t weight, bool showArrow);
void setRoute(Route route);
void setPivot(Pivot pivot);
void setOnFront(bool front);
void setOnBack(bool back);
@@ -57,7 +50,6 @@ protected:
bool m_earlyBend;
Route m_route;
Pivot m_pivot;
private:
Vec4i m_ownerRect;