52 |
VobScene vs; |
VobScene vs; |
53 |
int cs, cs2; |
int cs, cs2; |
54 |
|
|
55 |
|
/** Put the current fisheye coordinate system |
56 |
|
* into the given vobscene. This puts more than one coordinate |
57 |
|
* system, and only the first one uses the given key. |
58 |
|
* The returned one is not matched and should be added to |
59 |
|
* the matcher by the caller. |
60 |
|
*/ |
61 |
public int getCoordsys(VobScene vs, int into, Object key) { |
public int getCoordsys(VobScene vs, int into, Object key) { |
62 |
this.vs = vs; |
this.vs = vs; |
63 |
cs = ((GLVobCoorder)vs.coords).distort(into, |
cs = ((GLVobCoorder)vs.coords).distort(into, |
64 |
0, 0, 0, 0, 0, 0); |
0, 0, 0, 0, 0, 0); |
65 |
vs.matcher.add(into, cs, key); |
vs.matcher.add(into, cs, key); |
66 |
cs2 = vs.translateCS(cs, "TR", 0, 0); |
cs2 = vs.coords.translate(cs, 0, 0); |
67 |
setCoordsysParams(); |
setCoordsysParams(); |
68 |
return cs2; |
return cs2; |
69 |
} |
} |