25 #include <QGraphicsScene>
46 explicit QGVScene(
const QString &name, QObject *parent = 0);
49 void setGraphAttribute(
const QString &name,
const QString &value);
50 void setNodeAttribute(
const QString &name,
const QString &value);
51 void setEdgeAttribute(
const QString &name,
const QString &value);
53 QGVNode* addNode(
const QString& label);
55 QGVEdge *addEdge(
const QString &source,
const QString &target,
56 const QString &label);
58 QGVSubGraph* addSubGraph(
const QString& name,
bool cluster =
true);
59 void removeNode(
const QString &label);
62 void removeEdge(
const QString &label);
64 bool hasNode(
const QString &name);
65 QGVNode *getNode(
const QString &name);
67 bool hasEdge(
const QString &_label);
68 QGVEdge *getEdge(
const QString &_label);
70 void setRootNode(
QGVNode *node);
72 int nodeCount()
const;
73 int edgeCount()
const;
75 void loadLayout(
const QString &text);
82 void nodeContextMenu(
QGVNode* node);
83 void nodeDoubleClick(
QGVNode* node);
85 void edgeContextMenu(
QGVEdge* edge);
86 void edgeDoubleClick(
QGVEdge* edge);
91 void graphContextMenuEvent();
96 virtual void contextMenuEvent(
97 QGraphicsSceneContextMenuEvent * contextMenuEvent);
98 virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent * mouseEvent);
99 virtual void drawBackground(QPainter * painter,
const QRectF & rect);
108 QMap<QString, QGVNode *> _nodes;
110 QMap<QString, QGVEdge *> _edges;
111 QMap<QString, QGVSubGraph *> _subGraphs;
#define GZ_GUI_VISIBLE
Definition: system.hh:284
Node item.
Definition: QGVNode.h:34
Definition: QGVGraphPrivate.h:24
GZ_GUI_VISIBLE void init()
Edge item.
Definition: QGVEdge.h:36
SubGraph item.
Definition: QGVSubGraph.h:35
GraphViz interactive scene.
Definition: QGVScene.h:41
Definition: QGVGvcPrivate.h:24