OnScreenCanvas3D.java
Go to the documentation of this file.
00001 // -*- indent-tabs-mode: nil; tab-width: 4; -*-
00002 /*
00003  * Copyright (c) 2008, AIST, the University of Tokyo and General Robotix Inc.
00004  * All rights reserved. This program is made available under the terms of the
00005  * Eclipse Public License v1.0 which accompanies this distribution, and is
00006  * available at http://www.eclipse.org/legal/epl-v10.html
00007  * Contributors:
00008  * General Robotix Inc.
00009  * National Institute of Advanced Industrial Science and Technology (AIST) 
00010  */
00011 package com.generalrobotix.ui.view.vsensor;
00012 
00013 // Java2 SDK
00014 import java.awt.GraphicsConfiguration;
00015 
00016 // Java3D
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                 //System.out.println("OnScreenCanvas3D::OnScreenCanvas3D()");
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 }


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sun Apr 2 2017 03:43:55