-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedgemap.h
55 lines (42 loc) · 876 Bytes
/
edgemap.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef EDGEMAP_H
#define EDGEMAP_H
#include "node.h"
#include "edge.h"
#include <QPoint>
#include <QList>
#include <QString>
#include <QLine>
class EdgeMap
{
public:
EdgeMap();
EdgeMap(Node nodes, QList <QString> ch, QList <QString> bases, int nn);
Node n;
QList <QString> channels;
QList <QString> bases;
QMap < QString, int > baseMap;
QList <QLine> edgeList;
int nnodes;
void setNodes(Node nodes)
{
n.setNodes(nodes);
}
void setChannelsString(QList <QString> ch)
{
this->channels = ch;
}
void setBasesString (QList <QString> bases)
{
this->bases = bases;
}
void setNumberNodes(int nn)
{
this->nnodes = nn;
}
void createList();
QList <QLine> returnList();
private:
void CreateEdgeList();
void CreateBaseMap();
};
#endif // EDGEMAP_H