-
Notifications
You must be signed in to change notification settings - Fork 1
/
gplace.h
executable file
·53 lines (41 loc) · 1.03 KB
/
gplace.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
#ifndef GPLACE_H
#define GPLACE_H
#include <QGraphicsEllipseItem>
#include <QGraphicsTextItem>
#include <QBrush>
#include "internal.h"
class gPlace
{
public:
gPlace();
gPlace(unsigned m_ID);
~gPlace();
void setX(qreal m_X);
void setY(qreal m_Y);
qreal x();
qreal y();
void setID(unsigned m_ID);
unsigned id();
void setItem(QGraphicsEllipseItem *m_item);
void setBrushYellow();
void setBrushGreen();
void setText(QGraphicsTextItem *m_txt);
void setKeyText(QGraphicsTextItem *m_txt_key);
QGraphicsEllipseItem *getItem();
QBrush &getBrush();
QGraphicsTextItem *getText();
QGraphicsTextItem *getKeyText();
void setFibNode(FibNodePtr m_node);
FibNodePtr getFibNode();
private:
unsigned ID;
qreal X;
qreal Y;
QGraphicsEllipseItem *item;
QBrush brush;
QGraphicsTextItem *txt;
QGraphicsTextItem *txt_key;
FibNodePtr node;
};
extern std::list<gPlace*> glob_places;
#endif // GPLACE_H