|
anpstudio 0.4.0
ANP Studio — Analytic Network Process desktop application
|
Visual editor for clusters, nodes, and connections. More...
#include <network_canvas.hpp>
Inherits QGraphicsView.
Signals | |
| void | nodeActivated (const QString &name) |
| Emitted to open a node's subnetwork (e.g. | |
| void | selectionChanged (const QString &cluster, const QString &node) |
| Emitted when the user selects a cluster or node on the canvas. | |
| void | connectModeChanged (bool on) |
| Emitted when Connection mode is entered or left. | |
Public Member Functions | |
| NetworkCanvas (Document *doc, QWidget *parent=nullptr) | |
| void | rebuild () |
| Rebuilds scene items from the current network. | |
| void | persistLayout () |
| Writes current cluster item positions into the model. | |
| void | organizeClusters () |
| Topology-aware auto-layout of cluster windows (undoable). | |
| void | setConnectMode (bool on) |
| Enables or disables Connection mode. | |
| bool | connectMode () const |
| void | select (const QString &cluster, const QString &node) |
| Highlights a cluster/node from Document selection. | |
Visual editor for clusters, nodes, and connections.
Supports Connection mode for multi-source link editing and persists layout positions back to the Document model.
|
explicit |
| doc | Document whose network is displayed. |
| parent | Optional parent widget. |
|
inline |
|
signal |
Emitted to open a node's subnetwork (e.g.
from context menu).
| void NetworkCanvas::persistLayout | ( | ) |
Writes current cluster item positions into the model.
Call before save so drags are not lost when no rebuild has run yet.