|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.rendering.r3d.opengl.rendering.dem.manager.TextureManager
public class TextureManager
Manages the loading, unloading and caching of FragmentTexture
objects and the enabling/disabling in a certain
GL context.
Constructor Summary | |
---|---|
TextureManager(DirectByteBufferPool directByteBufferPool,
TextureTileManager tileManager,
double[] translationToLocalCRS,
int maxFragmentTexturesInGPUMemory,
int requestTimeout)
|
Method Summary | |
---|---|
void |
cleanUp(javax.media.opengl.GL gl)
Cleans up all cached textures from this managers, which were marked as least recently used. |
void |
enable(Collection<FragmentTexture> textures,
javax.media.opengl.GL gl)
Enables this TextureManager. |
double |
getMatchingResolution(double unitsPerPixel)
|
int |
getRequestTimeout()
|
Map<RenderMeshFragment,FragmentTexture> |
getTextures(RenderContext glRenderContext,
float maxProjectedTexelSize,
Set<RenderMeshFragment> fragments)
Retrieves view-optimized textures for the RenderMeshFragment s. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TextureManager(DirectByteBufferPool directByteBufferPool, TextureTileManager tileManager, double[] translationToLocalCRS, int maxFragmentTexturesInGPUMemory, int requestTimeout)
directByteBufferPool
- to be used for the texturestileManager
- managing all tilestranslationToLocalCRS
- the translation vectormaxFragmentTexturesInGPUMemory
- requestTimeout
- in milisecondsMethod Detail |
---|
public double getMatchingResolution(double unitsPerPixel)
unitsPerPixel
-
public Map<RenderMeshFragment,FragmentTexture> getTextures(RenderContext glRenderContext, float maxProjectedTexelSize, Set<RenderMeshFragment> fragments)
RenderMeshFragment
s.
glRenderContext
- maxProjectedTexelSize
- fragments
-
public void enable(Collection<FragmentTexture> textures, javax.media.opengl.GL gl)
textures
- gl
- public void cleanUp(javax.media.opengl.GL gl)
gl
- the context to which the textures were bound.public String toString()
toString
in class Object
public int getRequestTimeout()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |