org.deegree.services.wpvs
Class PerspectiveViewService
java.lang.Object
org.deegree.services.wpvs.PerspectiveViewService
public class PerspectiveViewService
- extends java.lang.Object
Performs the setup of a Dataset
s 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 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 documentssc
- the service configuration created with jaxbworkspace
- the workspace used to load data
- Throws:
ServiceInitException
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.