org.deegree.services.wpvs.rendering.jogl
Class GetViewRenderer

java.lang.Object
  extended by org.deegree.services.wpvs.rendering.jogl.GetViewRenderer
All Implemented Interfaces:
java.util.EventListener, javax.media.opengl.GLEventListener

public class GetViewRenderer
extends java.lang.Object
implements javax.media.opengl.GLEventListener

Performs GetView requests for the PerspectiveViewService.

Version:
$Revision: 25745 $, $Date: 2010-08-09 13:28:57 +0200 (Mo, 09. Aug 2010) $
Author:
Rutger Bezema, last edited by: $Author: mschneider $

Constructor Summary
GetViewRenderer(GetView request, org.deegree.rendering.r3d.opengl.rendering.RenderContext glRenderContext, org.deegree.commons.utils.nio.PooledByteBuffer imageBuffer, org.deegree.rendering.r3d.opengl.rendering.dem.manager.TerrainRenderingManager demRenderer, org.deegree.rendering.r3d.opengl.rendering.dem.Colormap colormap, java.util.List<org.deegree.rendering.r3d.opengl.rendering.dem.manager.TextureManager> textureManagers, java.util.List<org.deegree.rendering.r3d.opengl.rendering.model.manager.RenderableManager<?>> renderableRenderers, java.lang.String copyrightID, double copyrightScale, double sceneLatitude)
           
 
Method Summary
 void display(javax.media.opengl.GLAutoDrawable drawable)
           
 void displayChanged(javax.media.opengl.GLAutoDrawable arg0, boolean arg1, boolean arg2)
           
 java.awt.image.BufferedImage getResultImage()
          Returns the rendered image.
 void init(javax.media.opengl.GLAutoDrawable drawable)
           
 void reshape(javax.media.opengl.GLAutoDrawable drawable, int x, int y, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetViewRenderer

public GetViewRenderer(GetView request,
                       org.deegree.rendering.r3d.opengl.rendering.RenderContext glRenderContext,
                       org.deegree.commons.utils.nio.PooledByteBuffer imageBuffer,
                       org.deegree.rendering.r3d.opengl.rendering.dem.manager.TerrainRenderingManager demRenderer,
                       org.deegree.rendering.r3d.opengl.rendering.dem.Colormap colormap,
                       java.util.List<org.deegree.rendering.r3d.opengl.rendering.dem.manager.TextureManager> textureManagers,
                       java.util.List<org.deegree.rendering.r3d.opengl.rendering.model.manager.RenderableManager<?>> renderableRenderers,
                       java.lang.String copyrightID,
                       double copyrightScale,
                       double sceneLatitude)
Parameters:
request -
glRenderContext -
imageBuffer -
textureManagers -
demRenderer -
colormap - to render instead of a texture.
buildingRenderers - containing requested buildings
treeRenderers - containing requested trees.
copyrightID - the texture id of the copyright.
copyrightScale - the id of the copyright image
sceneLatitude - the latitude of the requested scene, necessary to calculate the light position.
Method Detail

display

public void display(javax.media.opengl.GLAutoDrawable drawable)
Specified by:
display in interface javax.media.opengl.GLEventListener

displayChanged

public void displayChanged(javax.media.opengl.GLAutoDrawable arg0,
                           boolean arg1,
                           boolean arg2)
Specified by:
displayChanged in interface javax.media.opengl.GLEventListener

init

public void init(javax.media.opengl.GLAutoDrawable drawable)
Specified by:
init in interface javax.media.opengl.GLEventListener

reshape

public void reshape(javax.media.opengl.GLAutoDrawable drawable,
                    int x,
                    int y,
                    int width,
                    int height)
Specified by:
reshape in interface javax.media.opengl.GLEventListener

getResultImage

public java.awt.image.BufferedImage getResultImage()
Returns the rendered image.

Returns:
the rendered image, never null


Copyright © 2011. All Rights Reserved.