|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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,
boolean antialiased)
Initializes the renderer class with the submitted width and height |
|
OffScreenWPVSRenderer(javax.media.j3d.Canvas3D canvas,
WPVSScene scene)
Initializes 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,
boolean antialiased)
Initializes the renderer class with the submitted width and height and a nearclipping plane of 2 |
Method Summary | |
---|---|
protected java.awt.image.RenderedImage |
getImage(javax.media.j3d.Canvas3D offScreenCanvas3D)
Called to render the scene into the offscreen Canvas3D |
java.awt.image.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, boolean antialiased)
canvas
- to render uponscene
- to renderwidth
- of the resulting imageheight
- of the resulting imageantialiased
- true if the scene should be rendered antialiasedpublic OffScreenWPVSRenderer(javax.media.j3d.Canvas3D canvas, double nearClippingPlane, WPVSScene scene, int width, int height, boolean antialiased)
canvas
- to render uponnearClippingPlane
- of the scene's viewport.scene
- to renderwidth
- of the resulting imageheight
- of the resulting imageantialiased
- true if the scene should be rendered antialiasedMethod Detail |
---|
public void setScene(WPVSScene scene)
scene
- the Scene to renderpublic java.awt.image.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 java.awt.image.RenderedImage getImage(javax.media.j3d.Canvas3D offScreenCanvas3D)
offScreenCanvas3D
- to be rendered into
|
deegree 2.5 (2011/06/29 09:44 build-8-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://www.deegree.org