Force Directed Edge Bundling
 All Classes Functions Pages
marveldata.h
1 #pragma once
2 #include "data.h"
3 #include "datatypes.h"
4 
5 /* temp struct for data wrangling */
6 //struct Book {
7 // int ID;
8 // QList<int> characters;
9 // void addCharacter(int c) {characters.append(c);};
10 //};
11 //struct CharStruct {
12 // int ID;
13 // QList<int> connections;
14 // CharStruct(int id): ID(id) {};
15 //};
16 /* end temp */
17 
18 
22 class MarvelData: public Data {
23 public:
24  MarvelData(Graph *g, QString nPath = 0, QString ePath = 0, QString gPath = 0):Data(g, nPath, ePath, gPath) {};
25  void initGraph();
26 protected:
27  QMap<QString, int> characters;
28  QMap<int, int> connections;
29 
30  void initEdges(QMap<QString, int> &characters, QMap<int, int> &connections);
31  /*void wrangle(QMap<QString, int> &characters, QMap<int, int> &connections);*/
32 };
33 
34 
Definition: data.h:11
Data(Graph *g, QString nPath=0, QString ePath=0, QString gPath=0)
Definition: data.h:21
Definition: graph.h:115
Definition: marveldata.h:22
void initGraph()
Definition: marveldata.cpp:9