65 |
float mw, float mh) { |
float mw, float mh) { |
66 |
int cs = next(); |
int cs = next(); |
67 |
|
|
68 |
|
parent[cs] = mparent; |
69 |
|
setParams(cs, mdepth, mx, my, mw, mh); |
70 |
|
|
71 |
|
nancestors[cs] = nancestors[mparent] + 1; |
72 |
|
|
73 |
|
nextHashtableEntry[cs] = 0; |
74 |
|
|
75 |
|
return cs; |
76 |
|
} |
77 |
|
|
78 |
|
void setParams(int cs, float mdepth, float mx, float my, |
79 |
|
float mw, float mh) { |
80 |
|
int mparent = parent[cs]; |
81 |
|
|
82 |
w[cs] = mw; |
w[cs] = mw; |
83 |
h[cs] = mh; |
h[cs] = mh; |
84 |
|
|
87 |
x[cs] = x[mparent] + mx; |
x[cs] = x[mparent] + mx; |
88 |
y[cs] = y[mparent] + my; |
y[cs] = y[mparent] + my; |
89 |
|
|
|
parent[cs] = mparent; |
|
|
nancestors[cs] = nancestors[mparent] + 1; |
|
90 |
|
|
|
nextHashtableEntry[cs] = 0; |
|
|
|
|
|
return cs; |
|
91 |
} |
} |
92 |
|
|
93 |
protected int next() { |
protected int next() { |