org.deegree.services.wpvs
Class PerspectiveViewService

java.lang.Object
  extended by org.deegree.services.wpvs.PerspectiveViewService

public class PerspectiveViewService
extends java.lang.Object

Performs the setup of a Datasets from a configuration document and provides the getImage(GetView) method for retrieving rendered images.

Version:
$Revision: 28120 $, $Date: 2010-11-12 19:42:59 +0100 (Fr, 12. Nov 2010) $
Author:
Rutger Bezema, Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
PerspectiveViewService(org.deegree.commons.xml.XMLAdapter configAdapter, ServiceConfiguration sc, org.deegree.commons.config.DeegreeWorkspace workspace)
          Creates a new PerspectiveViewService from the given parameters.
 
Method Summary
 java.util.List<org.deegree.rendering.r3d.opengl.rendering.model.manager.RenderableManager<?>> getAllRenderableRenderers()
           
 org.deegree.rendering.r3d.opengl.rendering.dem.manager.TextureManager[] getAllTextureManagers()
           
 java.util.List<org.deegree.rendering.r3d.opengl.rendering.model.manager.RenderableManager<?>> getBuildingRenderers(java.util.Collection<java.lang.String> datasetNames, org.deegree.rendering.r3d.ViewParams viewParams)
           
 org.deegree.rendering.r3d.opengl.rendering.dem.Colormap getColormap(java.util.List<java.lang.String> datasets, org.deegree.rendering.r3d.ViewParams viewParams)
           
 ColormapDataset getColormapDatasets()
           
 java.lang.String getCopyrightKey()
           
 org.deegree.rendering.r3d.opengl.rendering.dem.manager.TerrainRenderingManager getDefaultDEMRenderer()
           
 DEMDataset getDEMDatasets()
           
 java.util.List<org.deegree.rendering.r3d.opengl.rendering.dem.manager.TerrainRenderingManager> getDEMRenderers(java.lang.String elevationModelName, org.deegree.rendering.r3d.ViewParams viewParams)
           
 double getFarClippingPlane()
           
 java.awt.image.BufferedImage getImage(GetView request)
          Renders an image for requested datasets.
 double getNearClippingPlane()
           
 java.util.List<org.deegree.rendering.r3d.opengl.rendering.model.manager.RenderableManager<?>> getRenderableRenderers(org.deegree.rendering.r3d.ViewParams viewParams)
           
 ServiceConfiguration getServiceConfiguration()
           
 DEMTextureDataset getTextureDataSets()
           
 java.util.List<org.deegree.rendering.r3d.opengl.rendering.dem.manager.TextureManager> getTextureManagers(java.util.Collection<java.lang.String> datasetNames, org.deegree.rendering.r3d.ViewParams viewParams)
           
 java.util.List<org.deegree.rendering.r3d.opengl.rendering.dem.manager.TextureManager> getTextureManagers(org.deegree.rendering.r3d.ViewParams viewParams)
           
 double[] getTranslationVector()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerspectiveViewService

public PerspectiveViewService(org.deegree.commons.xml.XMLAdapter configAdapter,
                              ServiceConfiguration sc,
                              org.deegree.commons.config.DeegreeWorkspace workspace)
                       throws ServiceInitException
Creates a new PerspectiveViewService from the given parameters.

Parameters:
configAdapter - needed for the resolving of any relative urls in the configuration documents
sc - the service configuration created with jaxb
workspace - the workspace used to load data
Throws:
ServiceInitException
Method Detail

getFarClippingPlane

public double getFarClippingPlane()
Returns:
the configured max far clipping plane.

getServiceConfiguration

public final ServiceConfiguration getServiceConfiguration()
Returns:
the serviceConfiguration

getColormap

public org.deegree.rendering.r3d.opengl.rendering.dem.Colormap getColormap(java.util.List<java.lang.String> datasets,
                                                                           org.deegree.rendering.r3d.ViewParams viewParams)
Parameters:
datasets -
viewParams -
Returns:
the first matching colormap.

getAllRenderableRenderers

public java.util.List<org.deegree.rendering.r3d.opengl.rendering.model.manager.RenderableManager<?>> getAllRenderableRenderers()
Returns:
all building Renderers (independent of dataset name).

getBuildingRenderers

public java.util.List<org.deegree.rendering.r3d.opengl.rendering.model.manager.RenderableManager<?>> getBuildingRenderers(java.util.Collection<java.lang.String> datasetNames,
                                                                                                                          org.deegree.rendering.r3d.ViewParams viewParams)
Parameters:
datasetNames -
viewParams -
Returns:
all modelRenderers which intersect with the given parameters and have the given names.

getRenderableRenderers

public java.util.List<org.deegree.rendering.r3d.opengl.rendering.model.manager.RenderableManager<?>> getRenderableRenderers(org.deegree.rendering.r3d.ViewParams viewParams)
Parameters:
viewParams -
Returns:
all modelRenderers (independent of dataset name) which intersect with the given parameters.

getTextureManagers

public java.util.List<org.deegree.rendering.r3d.opengl.rendering.dem.manager.TextureManager> getTextureManagers(java.util.Collection<java.lang.String> datasetNames,
                                                                                                                org.deegree.rendering.r3d.ViewParams viewParams)
Parameters:
datasetNames -
viewParams -
Returns:
all Texture Managers which intersect with the given parameters and have the given names.

getTextureManagers

public java.util.List<org.deegree.rendering.r3d.opengl.rendering.dem.manager.TextureManager> getTextureManagers(org.deegree.rendering.r3d.ViewParams viewParams)
Parameters:
viewParams -
Returns:
all texture managers (independent of dataset name) which intersect with the given parameters.

getColormapDatasets

public ColormapDataset getColormapDatasets()
Returns:
all configured colormap datasets.

getTextureDataSets

public DEMTextureDataset getTextureDataSets()
Returns:
the configured texture datasets.

getDEMRenderers

public java.util.List<org.deegree.rendering.r3d.opengl.rendering.dem.manager.TerrainRenderingManager> getDEMRenderers(java.lang.String elevationModelName,
                                                                                                                      org.deegree.rendering.r3d.ViewParams viewParams)
Parameters:
elevationModelName -
viewParams -
Returns:
all Texture Managers which intersect with the given parameters and have the given names.

getImage

public final java.awt.image.BufferedImage getImage(GetView request)
                                            throws OWSException
Renders an image for requested datasets.

Parameters:
request - encapsulates the view parameters and the requested datasets, must not be null
Returns:
the rendered image, never null
Throws:
OWSException

getTranslationVector

public double[] getTranslationVector()
Returns:
the configured translation vector.

getNearClippingPlane

public double getNearClippingPlane()
Returns:
the configured near clippingplane.

getCopyrightKey

public final java.lang.String getCopyrightKey()
Returns:
the copyrightKey

getDefaultDEMRenderer

public org.deegree.rendering.r3d.opengl.rendering.dem.manager.TerrainRenderingManager getDefaultDEMRenderer()
Returns:
the default terrain renderer.

getAllTextureManagers

public org.deegree.rendering.r3d.opengl.rendering.dem.manager.TextureManager[] getAllTextureManagers()
Returns:
all available texture managers.

getDEMDatasets

public DEMDataset getDEMDatasets()
Returns:
the configured dems


Copyright © 2011. All Rights Reserved.