public static void move(int dx, int dy) { OffRendererTime off = (OffRendererTime) volRenderer.displayList.get(0); if (dx < 0) { off.prevTime(); } else if (dx > 0) { off.nextTime(); } }
public void openFile(String infoFile) { DataInfo info = FileUtils.parseInfoFile(infoFile); GLBrush offBrush = null; offBrush = new OffRendererTime(); ((OffRendererTime) offBrush).setMesh(info); if (!displayList.isEmpty()) { displayList.remove(0); } addGLBrush(offBrush); offBrush.setScreenSize(width, height); double ex = offBrush.getExtent(); ex *= 2; extent = ex; // Math.max(extent, ex); translate = (float) (-1.5 * extent); scale = 2 / extent; reset(); }
public static void animate() { OffRendererTime off = (OffRendererTime) volRenderer.displayList.get(0); off.toggleAnimate(); }
public static void executeCommand() { OffRendererTime off = (OffRendererTime) volRenderer.displayList.get(0); off.executeCommand(); }