OnScreenCanvas3D.java
Go to the documentation of this file.
1 // -*- indent-tabs-mode: nil; tab-width: 4; -*-
2 /*
3  * Copyright (c) 2008, AIST, the University of Tokyo and General Robotix Inc.
4  * All rights reserved. This program is made available under the terms of the
5  * Eclipse Public License v1.0 which accompanies this distribution, and is
6  * available at http://www.eclipse.org/legal/epl-v10.html
7  * Contributors:
8  * General Robotix Inc.
9  * National Institute of Advanced Industrial Science and Technology (AIST)
10  */
11 package com.generalrobotix.ui.view.vsensor;
12 
13 // Java2 SDK
14 import java.awt.GraphicsConfiguration;
15 
16 // Java3D
17 import javax.media.j3d.Raster;
18 
24 @SuppressWarnings("serial")
25 public final class OnScreenCanvas3D extends Canvas3DI {
35  GraphicsConfiguration graphicsConfiguration,
36  Raster raster,
37  int width,
38  int height,
39  int rasterType)
40  {
41  super(graphicsConfiguration, false, raster, width, height, rasterType);
42  //System.out.println("OnScreenCanvas3D::OnScreenCanvas3D()");
43  }
44 
45  public void renderOnce(){
46  super.renderOnce();
47  int cnt = 0;
48  startRenderer();
49  try {
50  while (finished_ == false) {
51  Thread.sleep(5);
52  if (cnt++ > 20)
53  break;
54  }
55  } catch (InterruptedException ex) { }
56  stopRenderer();
57  }
58 }
OnScreenCanvas3D(GraphicsConfiguration graphicsConfiguration, Raster raster, int width, int height, int rasterType)
png_infop png_uint_32 * width
Definition: png.h:2309
png_infop png_uint_32 png_uint_32 * height
Definition: png.h:2309


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sat Apr 13 2019 02:14:24