158 |
public void addInterp(Object key, Object o) { interps.put(key, o); } |
public void addInterp(Object key, Object o) { interps.put(key, o); } |
159 |
public void clearInterps() { interps.clear(); } |
public void clearInterps() { interps.clear(); } |
160 |
|
|
161 |
|
/* Coordsys */ |
162 |
private int MAIN_CS = -1; |
private int MAIN_CS = -1; |
163 |
|
private int NADIR_PT = -1; |
164 |
|
|
165 |
|
|
166 |
Vob black = GLCache.getCallList("Color 0 0 0\n"); |
Vob black = GLCache.getCallList("Color 0 0 0\n"); |
304 |
} |
} |
305 |
count *= 0.5; |
count *= 0.5; |
306 |
} |
} |
307 |
actr = vs.translateCS(actr, "SHIFT_"+count, 0, count * 1.8f); |
actr = vs.translateCS(actr, "SHIFT_"+connectedFrom, 0, count * 1.8f); |
308 |
|
|
309 |
int buoycs = floater.buoyCoordsys(actr, key); |
int buoycs = floater.buoyCoordsys(actr, key); |
310 |
|
|
|
// Nadir CS |
|
|
final int nadir_point_cs; |
|
|
nadir_point_cs = vs.orthoBoxCS(0, "nadir_point"+c, 0, |
|
|
leftPanelRealWidth + 0.5f*mainWidth, |
|
|
mainHeight*2.0f, |
|
|
1, 1, 2, 2); |
|
311 |
final int nadir_buoy = |
final int nadir_buoy = |
312 |
((GLVobCoorder)vs.coords).nadirOrigin(buoycs, nadir_point_cs); |
((GLVobCoorder)vs.coords).nadirOrigin(buoycs, NADIR_PT); |
313 |
vs.matcher.add(nadir_buoy, "NADIR"+c.toString() ); |
vs.matcher.add(nadir_buoy, "NADIR"+connectedFrom.toString() ); |
314 |
|
|
315 |
final int frameCS = vs.orthoBoxCS(nadir_buoy, "frame", 0, |
final int frameCS = vs.orthoBoxCS(nadir_buoy, "frame", 0, |
316 |
-buoyVPWidth/2, -buoyVPHeight/2, 1, 1, |
-buoyVPWidth/2, -buoyVPHeight/2, 1, 1, |
362 |
} |
} |
363 |
|
|
364 |
TextStyle style = GraphicsAPI.getInstance().getTextStyle("Sans", 0, 20); |
TextStyle style = GraphicsAPI.getInstance().getTextStyle("Sans", 0, 20); |
|
//CellView cellview = new ImageCell(new TextCellContentView(style)); |
|
|
//CellView cellview = new ImageCell(new LinebrokenCellContentView(style)); |
|
365 |
CellView cellview = new ImageCell(new PPCellView(style, |
CellView cellview = new ImageCell(new PPCellView(style, |
366 |
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")); |
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")); |
367 |
|
|
374 |
"LineWidth 2\nColor 0 0 0\nEnable TEXTURE_2D"); |
"LineWidth 2\nColor 0 0 0\nEnable TEXTURE_2D"); |
375 |
|
|
376 |
public void render(VobScene vs, int intoCS, ViewContext context) { |
public void render(VobScene vs, int intoCS, ViewContext context) { |
377 |
|
// Nadir CS |
378 |
|
NADIR_PT = vs.orthoBoxCS(0, "nadir_point", 0, |
379 |
|
leftPanelRealWidth + 0.5f*mainWidth, |
380 |
|
mainHeight*2.0f, |
381 |
|
1, 1, 2, 2); |
382 |
ev_handler.cleanCallers(); |
ev_handler.cleanCallers(); |
383 |
|
|
384 |
buoy_vc.setCellView(cellview); |
buoy_vc.setCellView(cellview); |