org.deegree.rendering.r3d.opengl.rendering.dem.texturing
Class StyledGeometryTTProvider

java.lang.Object
  extended by org.deegree.rendering.r3d.opengl.rendering.dem.texturing.StyledGeometryTTProvider
All Implemented Interfaces:
TextureTileProvider

public class StyledGeometryTTProvider
extends Object
implements TextureTileProvider

Provides a texture created from geometries supplied by a Featurstore and filled with a color or fillpattern, which columns are the geometries and which columns define the color/texture is defined by SE-Style file. Texture rendering is done by using the Java2DRenderer.

Version:
$Revision: 31622 $, $Date: 2011-08-23 18:12:33 +0200 (Tue, 23 Aug 2011) $
Author:
Rutger Bezema, last edited by: $Author: mschneider $

Constructor Summary
StyledGeometryTTProvider(double[] offsetVector, ICRS wpvsCRS, FeatureStore featureStore, Style style, double maxUnitsPerPixel, File cacheDir, long cacheSize)
          Use the given feature store to create a 'dataset' from a style.
 
Method Summary
 ICRS getCRS()
           
 Envelope getEnvelope()
           
 double getNativeResolution()
          Returns the provided resolution (in world units per pixel).
 TextureTile getTextureTile(TextureTileRequest request)
          Get a TextureTile best fitting the request.
 boolean hasTextureForResolution(double unitsPerPixel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyledGeometryTTProvider

public StyledGeometryTTProvider(double[] offsetVector,
                                ICRS wpvsCRS,
                                FeatureStore featureStore,
                                Style style,
                                double maxUnitsPerPixel,
                                File cacheDir,
                                long cacheSize)
                         throws IOException,
                                FeatureStoreException
Use the given feature store to create a 'dataset' from a style.

Parameters:
offsetVector - translation vector of the WPVS
wpvsCRS - crs of the WPVS
featureStore - to get the features / geometries from.
style - used to evaluate the given features.
maxUnitsPerPixel - for which this provider will become active.
cacheDir - to cache textures
cacheSize - size of the cache in bytes.
Throws:
IOException
FeatureStoreException
Method Detail

getTextureTile

public TextureTile getTextureTile(TextureTileRequest request)
Description copied from interface: TextureTileProvider
Get a TextureTile best fitting the request.

Specified by:
getTextureTile in interface TextureTileProvider
Parameters:
request - information about the request.
Returns:
a texture tile.

getNativeResolution

public double getNativeResolution()
Description copied from interface: TextureTileProvider
Returns the provided resolution (in world units per pixel).

Specified by:
getNativeResolution in interface TextureTileProvider
Returns:
the provided resolution

hasTextureForResolution

public boolean hasTextureForResolution(double unitsPerPixel)
Specified by:
hasTextureForResolution in interface TextureTileProvider
Returns:
true if a the provider could deliver a texture for the given resolution.

getEnvelope

public Envelope getEnvelope()
Specified by:
getEnvelope in interface TextureTileProvider
Returns:
the bounding box for this TextureTileProvider

getCRS

public ICRS getCRS()
Specified by:
getCRS in interface TextureTileProvider
Returns:
the crs of the texture tile provider


Copyright © 2011. All Rights Reserved.