11 package com.generalrobotix.ui.view.vsensor;
14 import java.awt.GraphicsConfiguration;
17 import javax.media.j3d.*;
25 @SuppressWarnings(
"serial")
37 GraphicsConfiguration graphicsConfiguration,
43 super(graphicsConfiguration,
true, raster, width, height, rasterType);
46 if (rasterType_ == Raster.RASTER_COLOR
47 || rasterType_ == Raster.RASTER_COLOR_DEPTH){
48 setOffScreenBuffer(raster_.getImage());
50 setOffScreenBuffer(
new ImageComponent2D(ImageComponent.FORMAT_RGB,
54 Screen3D s3d = getScreen3D();
55 s3d.setSize(width, height);
56 s3d.setPhysicalScreenWidth(width);
57 s3d.setPhysicalScreenHeight(height);
62 renderOffScreenBuffer();
63 waitForOffScreenRendering();
png_infop png_uint_32 * width
png_infop png_uint_32 png_uint_32 * height
OffScreenCanvas3D(GraphicsConfiguration graphicsConfiguration, Raster raster, int width, int height, int rasterType)
Constructor.