25 #include <QGraphicsScene>
45 explicit QGVScene(
const QString &name, QObject *parent = 0);
48 void setGraphAttribute(
const QString &name,
const QString &value);
49 void setNodeAttribute(
const QString &name,
const QString &value);
50 void setEdgeAttribute(
const QString &name,
const QString &value);
52 QGVNode* addNode(
const QString& label);
54 QGVEdge *addEdge(
const QString &source,
const QString &target,
55 const QString &label);
57 QGVSubGraph* addSubGraph(
const QString& name,
bool cluster =
true);
58 void removeNode(
const QString &label);
61 void removeEdge(
const QString &label);
63 bool hasNode(
const QString &name);
64 QGVNode *getNode(
const QString &name);
66 void setRootNode(
QGVNode *node);
68 int nodeCount()
const;
69 int edgeCount()
const;
71 void loadLayout(
const QString &text);
78 void nodeContextMenu(
QGVNode* node);
79 void nodeDoubleClick(
QGVNode* node);
81 void edgeContextMenu(
QGVEdge* edge);
82 void edgeDoubleClick(
QGVEdge* edge);
87 void graphContextMenuEvent();
92 virtual void contextMenuEvent(
93 QGraphicsSceneContextMenuEvent * contextMenuEvent);
94 virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent * mouseEvent);
95 virtual void drawBackground(QPainter * painter,
const QRectF & rect);
104 QMap<QString, QGVNode *> _nodes;
106 QMap<QString, QGVEdge *> _edges;
107 QMap<QString, QGVSubGraph *> _subGraphs;
Node item.
Definition: QGVNode.h:33
Definition: QGVGraphPrivate.h:24
Edge item.
Definition: QGVEdge.h:34
SubGraph item.
Definition: QGVSubGraph.h:35
GAZEBO_VISIBLE void init()
GraphViz interactive scene.
Definition: QGVScene.h:40
Definition: QGVGvcPrivate.h:24
#define QGVCORE_EXPORT
Definition: qgv.h:33