Force Directed Edge Bundling
 All Classes Functions Pages
data.h
1 #pragma once
2 #include "fileparser.h"
3 #include "graph.h"
4 #include <time.h>
5 #include <QObject>
6 
11 class Data : public QObject {
12  Q_OBJECT
13 public:
21  Data(Graph* g, QString nPath = 0, QString ePath = 0, QString gPath = 0) {
22  graph = g;
23  nodePath = nPath;
24  edgePath = ePath;
25  groupPath = gPath;
26  srand (time(NULL));
27  };
31  virtual ~Data(void) {delete input;};
35  virtual void initGraph(){};
36 protected:
37  FileParser* input;
38  Graph* graph;
39  QString nodePath,
40  edgePath,
41  groupPath;
43  QPointF randomPoint() {return QPointF(random(), random());};
45  double random() {return (rand()/(double)(RAND_MAX + 1)) * 0.90 + 0.05;};
46 signals:
48  void setStatus(QString s);
49 };
50 
Definition: data.h:11
Data(Graph *g, QString nPath=0, QString ePath=0, QString gPath=0)
Definition: data.h:21
Definition: graph.h:115
double random()
Definition: data.h:45
virtual ~Data(void)
Definition: data.h:31
virtual void initGraph()
Definition: data.h:35
QPointF randomPoint()
Definition: data.h:43
void setStatus(QString s)
Definition: fileparser.h:10