Force Directed Edge Bundling
 All Classes Functions Pages
forcebundler.h
1 #pragma once
2 #include <QVector>
3 #include <QMap>
4 #include <QObject>
5 #include "graph.h"
9 class ForceBundler: public QObject {
10  Q_OBJECT
11 public:
12  ForceBundler() {};
13  ~ForceBundler(void){};
18  void setGraph(Graph* g) {graph = g;};
25  void bundleEdges(int cycles, int iterations, double springConstant);
26 
32  QVector<QVector<double>>* calculateCompatibilities(QList<Edge*> *edges);
38  QVector<QMap<int, double>>* compatibleEdges(QList<Edge*> *edges);
39 
40 protected:
41  Graph* graph;
42 signals:
46  void setProgress(int p);
47 };
48 
void setProgress(int p)
Definition: graph.h:115
void setGraph(Graph *g)
Definition: forcebundler.h:18
QVector< QMap< int, double > > * compatibleEdges(QList< Edge * > *edges)
Definition: forcebundler.cpp:23
void bundleEdges(int cycles, int iterations, double springConstant)
Definition: forcebundler.cpp:40
Definition: forcebundler.h:9
QVector< QVector< double > > * calculateCompatibilities(QList< Edge * > *edges)
Definition: forcebundler.cpp:5