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

#include <forcebundler.h>

Inheritance diagram for ForceBundler:

Signals

void setProgress (int p)
 

Public Member Functions

void setGraph (Graph *g)
 
void bundleEdges (int cycles, int iterations, double springConstant)
 
QVector< QVector< double > > * calculateCompatibilities (QList< Edge * > *edges)
 
QVector< QMap< int, double > > * compatibleEdges (QList< Edge * > *edges)
 

Protected Attributes

Graphgraph
 

Detailed Description

ForceBundler class performs the main bundling algorithm on the graph passed as an argument.

Member Function Documentation

void ForceBundler::bundleEdges ( int  cycles,
int  iterations,
double  springConstant 
)

bundleEdges performs the main bundling algorithm on the graph.

Parameters
cyclesdetermines how many cycles the edge bundling process iterates over.
iterationsspecifies the number of iterations within one cycle.
springConstantdenotes the stiffness of the edges

DO ALL THE CYCLES!

DO ALL THE ITERATIONS!

DO ALL THE EDGES!

COMPARE ALL THE EDGES!

QVector< QVector< double > > * ForceBundler::calculateCompatibilities ( QList< Edge * > *  edges)

UNUSED: Deprecated approach that also calculates pairwise compatibilities for the list of passed edges. Does not sort out smaller compatibilities.

Parameters
edgeslist of edges the pairwise compatibilities are to be calculated from
Returns
a vector that stores for each edge a vector containing the compatibilities to all other edges
QVector< QMap< int, double > > * ForceBundler::compatibleEdges ( QList< Edge * > *  edges)

for performance reasons, the costly compatibility calculation is performed only once per bundling call and stored in a Map.

Parameters
edgeslist of edges the pairwise compatibilities are to be calculated from
Returns
a vector that stores for each edge a map of compatible edges with a compatibility > 0.1
void ForceBundler::setGraph ( Graph g)
inline

sets the ForceBundler's graph to a new pointer.

Parameters
gpointer to a new graph.
void ForceBundler::setProgress ( int  p)
signal

TODO signal to notify the main window's progress bar of the progress of graph generation


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