-
Notifications
You must be signed in to change notification settings - Fork 1
/
node.h
36 lines (30 loc) · 774 Bytes
/
node.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
#ifndef NODE_H
#define NODE_H
#include "QString"
#include "QList"
#include "QMap"
#include "utils.h"
#include "ogdf/basic/Graph.h"
class node_ {
public:
int id;
QString name;
QString path;
ogdf::node ogdfID;
double x, y; //用于画图
int x1 = 0, x2 = 0, y1 = 0, y2 = 0;
void setnode(int id_, QString name_, QList<Relation> relations_, QString path_);
bool is_seted;
QList<node_> connectednode;
QList<Label> labels;
QList<Relation> relations;
QMap<QString, double> keywords;
node_();
node_(int id_, QString name_, QList<Relation> relations_, QString path_);
int getid();
QString getname();
void setcoordinate(double x_, double y_);
bool getis_set();
void changeis_set();
};
#endif // NODE_H