75 |
Cell note = plane.s(Win.d_contains); |
Cell note = plane.s(Win.d_contains); |
76 |
|
|
77 |
BgVob bg = BgVob.create(plane); |
BgVob bg = BgVob.create(plane); |
78 |
int bginto = vs.coords.coordsys(viewport2screen, 500, 0, 0, 1, 1); |
int bginto = vs.coords.ortho(viewport2screen, 500, 0, 0, 1, 1); |
79 |
int bgpap = vs.coords.coordsys(paper2viewport, 0, 0, 0, 100, 100); |
int bgpap = vs.coords.ortho(paper2viewport, 0, 0, 0, 100, 100); |
80 |
vs.matcher.addSub(viewport2screen, bginto, "BGTRANS"); |
vs.matcher.addSub(viewport2screen, bginto, "BGTRANS"); |
81 |
vs.matcher.addSub(paper2viewport, bgpap, "BGPAP"); |
vs.matcher.addSub(paper2viewport, bgpap, "BGPAP"); |
82 |
vs.map.put(bg, bginto, bgpap); |
vs.map.put(bg, bginto, bgpap); |
102 |
|
|
103 |
Vob v = new TextVob(style, note.t(), true); |
Vob v = new TextVob(style, note.t(), true); |
104 |
|
|
105 |
int cs = vs.coordsys(into, note, 5, notex, notey, 10, 10); |
int cs = vs.orthoCS(into, note, 5, notex, notey, 10, 10); |
106 |
vs.map.put(v, cs); |
vs.map.put(v, cs); |
107 |
|
|
108 |
if(note.equals(cursor) && |
if(note.equals(cursor) && |
189 |
|
|
190 |
public void placeBuoyContents(VobScene vs, int cs, Cell center) { |
public void placeBuoyContents(VobScene vs, int cs, Cell center) { |
191 |
int w = 200, h = 200; |
int w = 200, h = 200; |
192 |
int magcs = vs.matcher.addSub(cs, |
int magcs = vs.orthoCS(cs, "Mag", -10, -w/2, -h/2, w, h); |
|
vs.coords.coordsys(cs, -10, -w/2, -h/2, w, h), |
|
|
"Mag"); |
|
193 |
center = center.getRootclone(); |
center = center.getRootclone(); |
194 |
int place[] = Params.getInts(center.s(Win.d_pan, 1), Win.d_pan, 2, null); |
int place[] = Params.getInts(center.s(Win.d_pan, 1), Win.d_pan, 2, null); |
195 |
float scale = 0.01f; |
float scale = 0.01f; |
196 |
int p2v = vs.matcher.addSub(cs, |
int p2v = vs.matcher.addSub( |
197 |
vs.coords.coordsys(0, 0, |
cs, |
198 |
|
vs.coords.ortho(0, 0, |
199 |
-scale*place[0]+0.5f, -scale*place[1]+0.5f, |
-scale*place[0]+0.5f, -scale*place[1]+0.5f, |
200 |
scale, scale), |
scale, scale), "Trans"); |
|
"Trans"); |
|
201 |
renderPaper(vs, center, -1, magcs, p2v, false); |
renderPaper(vs, center, -1, magcs, p2v, false); |
202 |
|
|
203 |
} |
} |