Signals | Public Member Functions | Protected Member Functions | List of all members
QGVScene Class Reference

GraphViz interactive scene. More...

#include <QGVScene.h>

Inheritance diagram for QGVScene:
Inheritance graph
[legend]

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 ()
 
QGVEdgeaddEdge (QGVNode *source, QGVNode *target, const QString &label)
 
QGVEdgeaddEdge (const QString &source, const QString &target, const QString &label)
 
QGVNodeaddNode (const QString &label)
 
QGVSubGraphaddSubGraph (const QString &name, bool cluster=true)
 
void applyLayout ()
 
void clear ()
 
void clearLayout ()
 
int edgeCount () const
 
QGVEdgegetEdge (const QString &_label)
 
QGVNodegetNode (const QString &name)
 
bool hasEdge (const QString &_label)
 
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)
 

Detailed Description

GraphViz interactive scene.

Constructor & Destructor Documentation

QGVScene::QGVScene ( const QString &  name,
QObject *  parent = 0 
)
explicit
QGVScene::~QGVScene ( )

Member Function Documentation

QGVEdge* QGVScene::addEdge ( QGVNode source,
QGVNode target,
const QString &  label 
)
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 ( )
virtual void QGVScene::contextMenuEvent ( QGraphicsSceneContextMenuEvent *  contextMenuEvent)
protectedvirtual
virtual void QGVScene::drawBackground ( QPainter *  painter,
const QRectF &  rect 
)
protectedvirtual
void QGVScene::edgeContextMenu ( QGVEdge edge)
signal
int QGVScene::edgeCount ( ) const
void QGVScene::edgeDoubleClick ( QGVEdge edge)
signal
QGVEdge* QGVScene::getEdge ( const QString &  _label)
QGVNode* QGVScene::getNode ( const QString &  name)
void QGVScene::graphContextMenuEvent ( )
signal
bool QGVScene::hasEdge ( const QString &  _label)
bool QGVScene::hasNode ( const QString &  name)
void QGVScene::loadLayout ( const QString &  text)
virtual void QGVScene::mouseDoubleClickEvent ( QGraphicsSceneMouseEvent *  mouseEvent)
protectedvirtual
void QGVScene::nodeContextMenu ( QGVNode node)
signal
int QGVScene::nodeCount ( ) const
void QGVScene::nodeDoubleClick ( QGVNode node)
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)
void QGVScene::subGraphContextMenu ( QGVSubGraph graph)
signal
void QGVScene::subGraphDoubleClick ( QGVSubGraph graph)
signal

The documentation for this class was generated from the following file: