basic auto-positioning implementation
Not perfect by any means, but nodes are now automatically placed in relation to their surroundings and connections.
This commit is contained in:
@@ -88,6 +88,12 @@ signals:
|
||||
void SelectionChanged(QList<Node*> selected_nodes);
|
||||
|
||||
private:
|
||||
void PlaceNode(NodeViewItem* n, const QPointF& pos);
|
||||
|
||||
void ReorganizeInternal(NodeViewItem *src_item, QList<Node *> &positioned_nodes);
|
||||
|
||||
void Reorganize();
|
||||
|
||||
NodeGraph* graph_;
|
||||
|
||||
QGraphicsScene scene_;
|
||||
|
||||
Reference in New Issue
Block a user