示例#1
0
 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();
   }
 }
示例#2
0
  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();
  }
示例#3
0
 public static void animate() {
   OffRendererTime off = (OffRendererTime) volRenderer.displayList.get(0);
   off.toggleAnimate();
 }
示例#4
0
 public static void executeCommand() {
   OffRendererTime off = (OffRendererTime) volRenderer.displayList.get(0);
   off.executeCommand();
 }