org.deegree.rendering.r3d.opengl.rendering.dem.manager
Class TerrainRenderingManager
java.lang.Object
org.deegree.rendering.r3d.opengl.rendering.dem.manager.TerrainRenderingManager
public class TerrainRenderingManager
- extends Object
The TerrainRenderingManager
class manages the current fragments, it uses fragment shaders if multiple
texture are requested.
- Version:
- $Revision: 30126 $, $Date: 2011-03-22 11:11:00 +0100 (Tue, 22 Mar 2011) $
- Author:
- Rutger Bezema, last edited by: $Author: aschmitz $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TerrainRenderingManager
public TerrainRenderingManager(RenderFragmentManager fragmentManager,
double maxPixelError,
double maxProjectedTexelSize,
float[] ambientColor,
float[] diffuseColor,
float[] specularColor,
float shininess)
- Parameters:
fragmentManager
- maxPixelError
- maxProjectedTexelSize
- ambientColor
- of the terraindiffuseColor
- of the terrainspecularColor
- of the terrainshininess
- of the terrain.
render
public void render(RenderContext glRenderContext,
boolean disableElevationModel,
Colormap colorMap,
TextureManager[] textureManagers)
- Renders a view-optimized representation of the terrain geometry using the given scale, colormap and/or textures
to the specified GL context.
- Parameters:
glRenderContext
- disableElevationModel
- colorMap
- to rendertextureManagers
- to retrieve the textures from.
getCurrentLOD
public Set<RenderMeshFragment> getCurrentLOD()
- Returns:
- the current lod
getFragmentManager
public final RenderFragmentManager getFragmentManager()
- Returns:
- the fragmentManager
Copyright © 2011. All Rights Reserved.