GraphViz interactive scene. More...
#include <QGVScene.h>
Signals | |
void | edgeContextMenu (QGVEdge *edge) |
void | edgeDoubleClick (QGVEdge *edge) |
void | graphContextMenuEvent () |
void | nodeContextMenu (QGVNode *node) |
void | nodeDoubleClick (QGVNode *node) |
void | subGraphContextMenu (QGVSubGraph *graph) |
void | subGraphDoubleClick (QGVSubGraph *graph) |
Public Member Functions | |
QGVScene (const QString &name, QObject *parent=0) | |
~QGVScene () | |
QGVEdge * | addEdge (QGVNode *source, QGVNode *target, const QString &label) |
QGVEdge * | addEdge (const QString &source, const QString &target, const QString &label) |
QGVNode * | addNode (const QString &label) |
QGVSubGraph * | addSubGraph (const QString &name, bool cluster=true) |
void | applyLayout () |
void | clear () |
void | clearLayout () |
int | edgeCount () const |
QGVNode * | getNode (const QString &name) |
bool | hasNode (const QString &name) |
void | loadLayout (const QString &text) |
int | nodeCount () const |
void | removeEdge (const QString &label) |
void | removeNode (const QString &label) |
void | setEdgeAttribute (const QString &name, const QString &value) |
void | setGraphAttribute (const QString &name, const QString &value) |
void | setNodeAttribute (const QString &name, const QString &value) |
void | setRootNode (QGVNode *node) |
Protected Member Functions | |
virtual void | contextMenuEvent (QGraphicsSceneContextMenuEvent *contextMenuEvent) |
virtual void | drawBackground (QPainter *painter, const QRectF &rect) |
virtual void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *mouseEvent) |
GraphViz interactive scene.
|
explicit |
QGVScene::~QGVScene | ( | ) |
QGVEdge* QGVScene::addEdge | ( | const QString & | source, |
const QString & | target, | ||
const QString & | label | ||
) |
QGVNode* QGVScene::addNode | ( | const QString & | label | ) |
QGVSubGraph* QGVScene::addSubGraph | ( | const QString & | name, |
bool | cluster = true |
||
) |
void QGVScene::applyLayout | ( | ) |
void QGVScene::clear | ( | ) |
void QGVScene::clearLayout | ( | ) |
|
protectedvirtual |
|
protectedvirtual |
|
signal |
int QGVScene::edgeCount | ( | ) | const |
|
signal |
QGVNode* QGVScene::getNode | ( | const QString & | name | ) |
|
signal |
bool QGVScene::hasNode | ( | const QString & | name | ) |
void QGVScene::loadLayout | ( | const QString & | text | ) |
|
protectedvirtual |
|
signal |
int QGVScene::nodeCount | ( | ) | const |
|
signal |
void QGVScene::removeEdge | ( | const QString & | label | ) |
void QGVScene::removeNode | ( | const QString & | label | ) |
void QGVScene::setEdgeAttribute | ( | const QString & | name, |
const QString & | value | ||
) |
void QGVScene::setGraphAttribute | ( | const QString & | name, |
const QString & | value | ||
) |
void QGVScene::setNodeAttribute | ( | const QString & | name, |
const QString & | value | ||
) |
void QGVScene::setRootNode | ( | QGVNode * | node | ) |
|
signal |
|
signal |