org.deegree.rendering.r3d.opengl.rendering.model.manager
Class LODSwitcher
java.lang.Object
org.deegree.rendering.r3d.opengl.rendering.model.manager.LODSwitcher
public class LODSwitcher
- extends Object
The LODSwitcher
holds (configured) scale values for a WorldRenderableObject
with which the
latter can decide which LOD it should use to represent it self. The values are supposed to be units per pixel.
- Version:
- $Revision: 30126 $, $Date: 2011-03-22 11:11:00 +0100 (Tue, 22 Mar 2011) $
- Author:
- Rutger Bezema, last edited by: $Author: aschmitz $
Method Summary |
int |
calcLevel(RenderContext glRenderContext,
float[] position,
int maxNumberOfLevels,
float sizeInUnits)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LODSwitcher
public LODSwitcher()
- Create a new lod switch containing no levels.
LODSwitcher
public LODSwitcher(List<Pair<Double,Double>> levels)
- Create a new level
- Parameters:
levels
-
calcLevel
public int calcLevel(RenderContext glRenderContext,
float[] position,
int maxNumberOfLevels,
float sizeInUnits)
- Parameters:
glRenderContext
- position
- maxNumberOfLevels
- sizeInUnits
- of the building (normally the length of the min-max points of the bbox)
- Returns:
- the level of detail calculated from the configured level switches
Copyright © 2011. All Rights Reserved.