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

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

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

Performs GetView requests for the PerspectiveViewService.

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

Constructor Summary
GetViewRenderer(GetView request, RenderContext glRenderContext, PooledByteBuffer imageBuffer, TerrainRenderingManager demRenderer, Colormap colormap, List<TextureManager> textureManagers, List<RenderableManager<?>> renderableRenderers, 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)
           
 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,
                       RenderContext glRenderContext,
                       PooledByteBuffer imageBuffer,
                       TerrainRenderingManager demRenderer,
                       Colormap colormap,
                       List<TextureManager> textureManagers,
                       List<RenderableManager<?>> renderableRenderers,
                       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 BufferedImage getResultImage()
Returns the rendered image.

Returns:
the rendered image, never null


Copyright © 2011. All Rights Reserved.