154 |
public Space space; |
public Space space; |
155 |
public PPDims d; |
public PPDims d; |
156 |
|
|
157 |
|
|
158 |
|
/** Demo - Animations |
159 |
|
*/ |
160 |
|
private TreeMap animationTree = new TreeMap(); |
161 |
|
private void addAnim(Object o, int key) { |
162 |
|
animationTree.put(o, new Integer(key)); |
163 |
|
} |
164 |
|
public int getAnimCS(Object o) { |
165 |
|
Object obj = animationTree.get(o); |
166 |
|
if (obj == null) return -1; |
167 |
|
return ((Integer)obj).intValue(); |
168 |
|
} |
169 |
|
|
170 |
|
/** Interpolations |
171 |
|
*/ |
172 |
private TreeMap interps = new TreeMap(); |
private TreeMap interps = new TreeMap(); |
173 |
|
public void addInterp(Object key, int i) { addInterp(key, new Integer(i)); } |
174 |
public void addInterp(Object key, Object o) { interps.put(key, o); } |
public void addInterp(Object key, Object o) { interps.put(key, o); } |
175 |
public void clearInterps() { interps.clear(); } |
public void clearInterps() { interps.clear(); } |
176 |
|
|
336 |
-pan[0]*buoyZoom, -pan[1]*buoyZoom, buoyZoom, buoyZoom); |
-pan[0]*buoyZoom, -pan[1]*buoyZoom, buoyZoom, buoyZoom); |
337 |
vs.matcher.add(frameCS, c2fCS, "C2F"); |
vs.matcher.add(frameCS, c2fCS, "C2F"); |
338 |
|
|
339 |
|
addAnim(""+c, frameCS); |
340 |
if (viewMode == LINK_KILLING) { |
if (viewMode == LINK_KILLING) { |
341 |
ev_handler.onClick(frameCS, "Kill link", |
ev_handler.onClick(frameCS, "Kill link", |
342 |
new Object[]{ c, connectedFrom, new Integer(dir)}); |
new Object[]{ c, connectedFrom, new Integer(dir)}); |
389 |
"LineWidth 2\nColor 0 0 0\nEnable TEXTURE_2D"); |
"LineWidth 2\nColor 0 0 0\nEnable TEXTURE_2D"); |
390 |
|
|
391 |
public void render(VobScene vs, int intoCS, ViewContext context) { |
public void render(VobScene vs, int intoCS, ViewContext context) { |
392 |
|
ev_handler.cleanCallers(); |
393 |
|
animationTree.clear(); |
394 |
|
|
395 |
// Nadir CS |
// Nadir CS |
396 |
NADIR_PT = vs.orthoBoxCS(0, "nadir_point", 0, |
NADIR_PT = vs.orthoBoxCS(0, "nadir_point", 0, |
397 |
leftPanelRealWidth + 0.5f*mainWidth, |
leftPanelRealWidth + 0.5f*mainWidth, |
398 |
mainHeight*2.0f, |
mainHeight*2.0f, |
399 |
1, 1, 2, 2); |
1, 1, 2, 2); |
|
ev_handler.cleanCallers(); |
|
|
|
|
400 |
buoy_vc.setCellView(cellview); |
buoy_vc.setCellView(cellview); |
401 |
|
|
402 |
buoy_singlePlane = new SinglePlane(); |
buoy_singlePlane = new SinglePlane(); |
439 |
vs.matcher.add(frameCS, c2fCS, "C2F"); |
vs.matcher.add(frameCS, c2fCS, "C2F"); |
440 |
|
|
441 |
MAIN_CS = frameCS; |
MAIN_CS = frameCS; |
442 |
|
addAnim(""+context.getAccursed(), MAIN_CS); |
443 |
|
|
444 |
ev_handler.onClick(frameCS, "Click MAINVP", |
ev_handler.onClick(frameCS, "Click MAINVP", |
445 |
new Object[]{ new Integer(mainctr), new Integer(frameCS)}); |
new Object[]{ new Integer(mainctr), new Integer(frameCS)}); |