|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.services.wts.Abstract3DRenderEngine
org.deegree_impl.services.wts.OffScreenWTSRenderer
The class provides the capabilitiy for rendering a WTSScene to an offscreen graphic context that is represent by a BufferedImage.
-----------------------------------------------------------------------
Field Summary | |
private int |
height
|
private boolean |
newSize
|
private Canvas3D |
offScreenCanvas3D
|
private View |
view
|
private int |
width
|
Fields inherited from class org.deegree_impl.services.wts.Abstract3DRenderEngine |
back_clipping, front_clipping, scene |
Constructor Summary | |
OffScreenWTSRenderer(WTSScene scene)
initialzies the render class with a default width and height (800x600) |
|
OffScreenWTSRenderer(WTSScene scene,
int width,
int height)
initialzies the render class with the submitted width and height |
Method Summary | |
protected Locale |
createLocale(VirtualUniverse u)
Simple utility method that creates a Locale for the VirtualUniverse |
protected Canvas3D |
createOffscreenCanvas3D()
creates and returns a canvas for offscreen rendering |
protected VirtualUniverse |
createVirtualUniverse()
Create the VirtualUniverse for the application. |
int |
getHeight()
returns the height of the offscreen rendering target |
protected java.awt.image.RenderedImage |
getImage(Canvas3D offScreenCanvas3D)
|
int |
getWidth()
returns the width of the offscreen rendering target |
java.lang.Object |
renderScene()
renders the scene to an BufferedImage |
void |
setHeight(int height_)
|
void |
setScene(WTSScene scene)
|
void |
setWidth(int width_)
|
Methods inherited from class org.deegree_impl.services.wts.Abstract3DRenderEngine |
addBackround, createBackground, createCanvas, setBackClipDistance, setFrontClipDistance, setView |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int width
private int height
private Canvas3D offScreenCanvas3D
private View view
private boolean newSize
Constructor Detail |
public OffScreenWTSRenderer(WTSScene scene)
public OffScreenWTSRenderer(WTSScene scene, int width, int height)
Method Detail |
public void setScene(WTSScene scene)
protected VirtualUniverse createVirtualUniverse()
protected Locale createLocale(VirtualUniverse u)
public int getWidth()
public void setWidth(int width_)
public int getHeight()
public void setHeight(int height_)
public java.lang.Object renderScene()
protected Canvas3D createOffscreenCanvas3D()
protected java.awt.image.RenderedImage getImage(Canvas3D offScreenCanvas3D)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |