org.deegree.services.wpvs
Class PerspectiveViewService
java.lang.Object
org.deegree.services.wpvs.PerspectiveViewService
public class PerspectiveViewService
- extends Object
Performs the setup of a Dataset
s from a configuration document and provides the getImage(GetView)
method for retrieving rendered images.
- Version:
- $Revision: 31688 $, $Date: 2011-08-30 15:05:12 +0200 (Tue, 30 Aug 2011) $
- 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(XMLAdapter configAdapter,
ServiceConfiguration sc,
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 Colormap getColormap(List<String> datasets,
ViewParams viewParams)
- Parameters:
datasets
- viewParams
-
- Returns:
- the first matching colormap.
getAllRenderableRenderers
public List<RenderableManager<?>> getAllRenderableRenderers()
- Returns:
- all building Renderers (independent of dataset name).
getBuildingRenderers
public List<RenderableManager<?>> getBuildingRenderers(Collection<String> datasetNames,
ViewParams viewParams)
- Parameters:
datasetNames
- viewParams
-
- Returns:
- all modelRenderers which intersect with the given parameters and have the given names.
getRenderableRenderers
public List<RenderableManager<?>> getRenderableRenderers(ViewParams viewParams)
- Parameters:
viewParams
-
- Returns:
- all modelRenderers (independent of dataset name) which intersect with the given parameters.
getTextureManagers
public List<TextureManager> getTextureManagers(Collection<String> datasetNames,
ViewParams viewParams)
- Parameters:
datasetNames
- viewParams
-
- Returns:
- all Texture Managers which intersect with the given parameters and have the given names.
getTextureManagers
public List<TextureManager> getTextureManagers(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 List<TerrainRenderingManager> getDEMRenderers(String elevationModelName,
ViewParams viewParams)
- Parameters:
elevationModelName
- viewParams
-
- Returns:
- all Texture Managers which intersect with the given parameters and have the given names.
getImage
public final 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 String getCopyrightKey()
- Returns:
- the copyrightKey
getDefaultDEMRenderer
public TerrainRenderingManager getDefaultDEMRenderer()
- Returns:
- the default terrain renderer.
getAllTextureManagers
public TextureManager[] getAllTextureManagers()
- Returns:
- all available texture managers.
getDEMDatasets
public DEMDataset getDEMDatasets()
- Returns:
- the configured dems
Copyright © 2011. All Rights Reserved.