org.deegree.rendering.r3d.opengl.rendering.dem.manager
Class TextureTileManager

java.lang.Object
  extended by org.deegree.rendering.r3d.opengl.rendering.dem.manager.TextureTileManager

public class TextureTileManager
extends Object

Manages the fetching (and caching) of TextureTile instances from TextureTileProviders.

Version:
$Revision: 30126 $, $Date: 2011-03-22 11:11:00 +0100 (Tue, 22 Mar 2011) $
Author:
Markus Schneider, last edited by: $Author: aschmitz $

Constructor Summary
TextureTileManager(TextureTileProvider[] providers, int maxCached)
          Construct a tile manager for the given providers.
 
Method Summary
 TextureRequest createTextureRequest(RenderContext glRenderContext, double[][] fragmentBBoxWorldCoordinates, double requiredUnitsPerPixel, RenderMeshFragment fragment)
          Create a texture request from the given texture tile providers.
 TextureTile getMachingTile(TextureTileRequest request)
          Return the bestfitting tile matching the given request
 double getMatchingResolution(double unitsPerPixel)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextureTileManager

public TextureTileManager(TextureTileProvider[] providers,
                          int maxCached)
Construct a tile manager for the given providers.

Parameters:
providers -
maxCached -
Method Detail

getMachingTile

public TextureTile getMachingTile(TextureTileRequest request)
Return the bestfitting tile matching the given request

Parameters:
request -
Returns:
the Texturetile which fits the given request best.

getMatchingResolution

public double getMatchingResolution(double unitsPerPixel)
Parameters:
unitsPerPixel -
Returns:
the native resolution of the configured TextureProvider, based on the meters per pixel.

createTextureRequest

public TextureRequest createTextureRequest(RenderContext glRenderContext,
                                           double[][] fragmentBBoxWorldCoordinates,
                                           double requiredUnitsPerPixel,
                                           RenderMeshFragment fragment)
Create a texture request from the given texture tile providers.

Parameters:
glRenderContext -
fragmentBBoxWorldCoordinates -
requiredUnitsPerPixel -
fragment -
Returns:
a Texture request

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.