26 |
|
|
27 |
private Fen fen; |
private Fen fen; |
28 |
private NodeFunction nodeView; |
private NodeFunction nodeView; |
29 |
|
public boolean cull; |
30 |
|
|
31 |
public CanvasView2D(Fen fen, NodeFunction nodeView) { |
public CanvasView2D(Fen fen, NodeFunction nodeView) { |
32 |
this.fen = fen; |
this.fen = fen; |
33 |
this.nodeView = nodeView; |
this.nodeView = nodeView; |
34 |
} |
} |
35 |
|
|
36 |
|
|
37 |
public void render(VobScene vs, Object container, |
public void render(VobScene vs, Object container, |
38 |
int matchingParent, int box2screen, int box2plane) |
int matchingParent, int box2screen, int box2plane) |
39 |
{ |
{ |
43 |
|
|
44 |
Iterator iter = fen.constgraph.findN_11X_Iter(container, |
Iterator iter = fen.constgraph.findN_11X_Iter(container, |
45 |
PP.contains); |
PP.contains); |
46 |
|
|
47 |
while (iter.hasNext()) { |
while (iter.hasNext()) { |
48 |
Object n = iter.next(); |
Object n = iter.next(); |
49 |
|
|
61 |
x, y, 1, 1, |
x, y, 1, 1, |
62 |
p.getWidth(), p.getHeight()); |
p.getWidth(), p.getHeight()); |
63 |
vs.matcher.add(matchingParent, cs, matchKey); |
vs.matcher.add(matchingParent, cs, matchKey); |
64 |
|
if(cull) { |
65 |
|
cs = vs.cullCS(cs, "CULL", box2screen); |
66 |
|
} |
67 |
p.place(vs, cs); |
p.place(vs, cs); |
68 |
} |
} |
69 |
} |
} |