Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 package com.generalrobotix.ui.view.vsensor;
00012
00013
00014 import java.awt.GraphicsConfiguration;
00015
00016
00017 import javax.media.j3d.Raster;
00018
00024 @SuppressWarnings("serial")
00025 public final class OnScreenCanvas3D extends Canvas3DI {
00034 public OnScreenCanvas3D(
00035 GraphicsConfiguration graphicsConfiguration,
00036 Raster raster,
00037 int width,
00038 int height,
00039 int rasterType)
00040 {
00041 super(graphicsConfiguration, false, raster, width, height, rasterType);
00042
00043 }
00044
00045 public void renderOnce(){
00046 super.renderOnce();
00047 int cnt = 0;
00048 startRenderer();
00049 try {
00050 while (finished_ == false) {
00051 Thread.sleep(5);
00052 if (cnt++ > 20)
00053 break;
00054 }
00055 } catch (InterruptedException ex) { }
00056 stopRenderer();
00057 }
00058 }