-
Notifications
You must be signed in to change notification settings - Fork 0
/
bnode.h
100 lines (73 loc) · 1.76 KB
/
bnode.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#ifndef BNode_H__
#define BNode_H__
#include "node.hh"
class BNode
{
private:
Node* m_node;
int m_x;
int m_y;
int m_uid;
int m_width;
int m_height;
bool m_isCollapsed;
bool m_isMode;
bool m_isConstraint;
bool m_isPredicate;
bool m_isType;
std::string m_mode;
std::string m_constraint;
std::string m_predicate;
std::string m_type;
BNode* m_parent;
int m_sX;
int m_sY;
bool m_isDoubleClicked;
void init(Node* aNode);
public:
std::vector<BNode*> children;
BNode(Node* aNode);
BNode();
Node* getNode();
int getX();
void setX(int aX);
int getY();
void setY(int aY);
int getSX();
void setSX(int aX);
int getSY();
void setSY(int aY);
int getId();
void setId(int aId);
int getWidth();
void setWidth(int aWidth);
int getHeight();
void setHeight(int aHeight);
bool isCollapsed();
void setIsCollapsed(bool aIsCollapsed);
bool isDoubleClicked();
void setIsDoubleClicked(bool aIsDoubleClicked);
bool isMode();
void setIsMode(bool aIsMode);
bool isConstraint();
void setIsConstraint(bool aIsConstraint);
bool isPredicate();
void setIsPredicate(bool aIsPredicate);
bool isType();
void setIsType(bool aIsType);
std::string getMode();
void setMode(std::string aMode);
std::string getConstraint();
void setConstraint(std::string aConstraint);
std::string getPredicate();
void setPredicate(std::string aPredicate);
std::string getType();
void setType(std::string aType);
BNode* getParent();
void setParent(BNode* aParent);
std::string getAppropriateText();
std::string getClippedText();
bool isAttributeNode();
~BNode();
};
#endif