|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.ogcwebservices.wpvs.j3d.Abstract3DRenderingEngine
org.deegree.ogcwebservices.wpvs.j3d.OffScreenWPVSRenderer
public class OffScreenWPVSRenderer
The class provides the capabilitiy for rendering a WPVSScene
to an offscreen graphic context that is
represent by a BufferedImage
. That is, the returned BufferedImage of this class's renderScene method
is the response Object of a GetView request.
Field Summary |
---|
Fields inherited from class org.deegree.ogcwebservices.wpvs.j3d.Abstract3DRenderingEngine |
---|
farClippingPlane, nearClippingPlane, scene |
Constructor Summary | |
---|---|
OffScreenWPVSRenderer(javax.media.j3d.Canvas3D canvas,
double nearClippingPlane,
WPVSScene scene,
int width,
int height)
Initialzies the renderer class with the submitted width and height |
|
OffScreenWPVSRenderer(javax.media.j3d.Canvas3D canvas,
WPVSScene scene)
Initialzies the render class with a default width and height (800x600) and a nearclipping plane of 2 |
|
OffScreenWPVSRenderer(javax.media.j3d.Canvas3D canvas,
WPVSScene scene,
int width,
int height)
Initialzies the renderer class with the submitted width and height and a nearclipping plane of 2 |
Method Summary | |
---|---|
protected RenderedImage |
getImage(javax.media.j3d.Canvas3D offScreenCanvas3D)
Called to render the scene into the offscreen Canvas3D |
BufferedImage |
renderScene()
Renders the scene to a BufferedImage . |
void |
setScene(WPVSScene scene)
|
Methods inherited from class org.deegree.ogcwebservices.wpvs.j3d.Abstract3DRenderingEngine |
---|
addBackground, createCanvas, createTransformGroup, setBackClipDistance, setFrontClipDistance, setView |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OffScreenWPVSRenderer(javax.media.j3d.Canvas3D canvas, WPVSScene scene)
canvas
- to render uponscene
- to renderpublic OffScreenWPVSRenderer(javax.media.j3d.Canvas3D canvas, WPVSScene scene, int width, int height)
canvas
- to render uponscene
- to renderwidth
- of the resulting imageheight
- of the resulting imagepublic OffScreenWPVSRenderer(javax.media.j3d.Canvas3D canvas, double nearClippingPlane, WPVSScene scene, int width, int height)
canvas
- to render uponnearClippingPlane
- of the scene's viewport.scene
- to renderwidth
- of the resulting imageheight
- of the resulting imageMethod Detail |
---|
public void setScene(WPVSScene scene)
scene
- the Scene to renderpublic BufferedImage renderScene()
BufferedImage
. This Method uses the viewmatrix of the the ViewPoint class,
which the defines the necessary viewing rotations and translations for the j3d scene.
BufferedImage
where the scene has been rendered toprotected RenderedImage getImage(javax.media.j3d.Canvas3D offScreenCanvas3D)
offScreenCanvas3D
- to be rendered into
|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net