Force Directed Edge Bundling
 All Classes Functions Pages
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
Graph Class Reference

Public Member Functions

void clear (void)
 
QList< Node * > * getNodes ()
 
QList< Edge * > * getEdges ()
 
void addNode (Node *n)
 
void addEdge (Edge *e)
 

Static Public Member Functions

static QVector2D midPoint (QVector2D a, QVector2D b)
 
static QPointF midPoint (QPointF a, QPointF b)
 

Protected Attributes

QList< Node * > nodes
 
QList< Edge * > edges
 

Member Function Documentation

void Graph::addEdge ( Edge e)
inline

Add a new edge to the graph's list of edges

Parameters
enew edge
void Graph::addNode ( Node n)
inline

Add a new node to the graph's list of nodes

Parameters
nnew node
QList<Edge*>* Graph::getEdges ( )
inline

Return the list of all the graph's edges.

Returns
QList of pointers to all the edges
QList<Node*>* Graph::getNodes ( )
inline

Return the list of all the graph's nodes.

Returns
QList of pointers to all the nodes
static QVector2D Graph::midPoint ( QVector2D  a,
QVector2D  b 
)
inlinestatic

static convenience function returning the mean point between two QVector2D objects

Parameters
afirst QVector2D
bsecond QVector2D
static QPointF Graph::midPoint ( QPointF  a,
QPointF  b 
)
inlinestatic

static convenience function returning the mean point between two QPointF objects

Parameters
afirst QPointF
bsecond QPointF

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