19 |
this.x0 = x0; this.y0 = y0; |
this.x0 = x0; this.y0 = y0; |
20 |
this.x1 = x1; this.y1 = y1; |
this.x1 = x1; this.y1 = y1; |
21 |
} |
} |
22 |
|
|
23 |
|
private Object current = null; |
24 |
|
public void setCurrentPlane(Object obj) { current = obj; } |
25 |
|
|
26 |
private Paper paper; |
private Paper paper; |
27 |
private GLRen.FixedPaperQuad pq; |
private GLRen.FixedPaperQuad pq; |
28 |
|
|
45 |
child.render(vs, plane, matchingParent, |
child.render(vs, plane, matchingParent, |
46 |
box2screen, box2paper); |
box2screen, box2paper); |
47 |
|
|
48 |
|
if (current != plane) return; |
49 |
|
|
50 |
int paper2box = vs.invertCS(box2paper, "areaselectview_INv"); |
int paper2box = vs.invertCS(box2paper, "areaselectview_INv"); |
51 |
int paper2screen = vs.concatCS(box2screen, "areaselectview_conc", |
int paper2screen = vs.concatCS(box2screen, "areaselectview_conc", |
52 |
paper2box); |
paper2box); |
53 |
int cs = vs.orthoCS(paper2screen, "selection", 0, x0,y0,x1,y1); |
int cs = vs.orthoCS(paper2screen, "selection", 0, x0,y0,x1,y1); |
54 |
vs.put(pq, cs); |
vs.put(pq, cs); |
55 |
|
|
56 |
} |
} |