deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

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: 22276 $, $Date: 2010-01-27 18:09:31 +0100 (Mi, 27 Jan 2010) $
Author:
Rutger Bezema, last edited by: $Author: rbezema $

Field Summary
(package private) static org.slf4j.Logger LOG
           
 
Constructor Summary
StyledGeometryTTProvider(double[] offsetVector, CRS 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
 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
 

Field Detail

LOG

static org.slf4j.Logger LOG
Constructor Detail

StyledGeometryTTProvider

public StyledGeometryTTProvider(double[] offsetVector,
                                CRS wpvsCRS,
                                FeatureStore featureStore,
                                Style style,
                                double maxUnitsPerPixel,
                                File cacheDir,
                                long cacheSize)
                         throws IOException
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
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

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>